# snapdir verify-cache Verify the integrity of the local cache. `verify-cache` checks every object in the local cache against its content address, detecting corruption across all staged snapshots at once. See [Integrity](../concepts/integrity.md). ## Usage ```text snapdir verify-cache [OPTIONS] ``` ### Options `verify-cache` takes no positional arguments. It accepts the [global options](overview.md#global-options); the most relevant are `--cache-dir` and `--purge` (drop objects with invalid checksums). ## Examples Verify the default cache: ```console snapdir verify-cache ``` Verify a specific cache directory and purge corrupt objects: ```console snapdir verify-cache --cache-dir /var/snapdir/cache --purge ``` ## See also - [`snapdir verify`](snapdir-verify.md) — verify a single staged snapshot - [`snapdir flush-cache`](snapdir-flush-cache.md) — clear the cache - [Stores and cache](../concepts/stores-and-cache.md)