smartmemo stats
CLI ReferenceAgent View (Markdown)
Overview
Display the total count of cached entries and cumulative hit statistics from the local SQLite cache database.
smartmemo stats
Overview
The stats command displays statistics about the persisted cache store, including the total number of entries and cumulative hit counts. This command is useful for monitoring cache performance and understanding cache utilization.
Usage
smartmemo stats [--db-path PATH]
Options
--db-path PATH
Path to the SQLite cache database file.
Default: Uses the default database path from CacheConfig().db_path
Example:
smartmemo stats --db-path /custom/path/to/cache.db
Output
The command outputs a single line with the following fields:
entries: Total number of cached entries in the databasetotal_hits: Cumulative count of cache hits
Example output:
entries=42 total_hits=156
Examples
Display cache stats with default database path
smartmemo stats
Output:
entries=125 total_hits=3847
Display cache stats from a custom database location
smartmemo stats --db-path ./my_cache/memory.db
Output:
entries=89 total_hits=2105
See Also
- CLI Reference — Complete CLI command documentation
- Configuration — Database and cache configuration options