Expand description
Cache clear command implementation
CLI command: tldr cache clear [--project PATH]
Clears the cache for a TLDR project:
- If daemon is running, stops it first (or sends Clear command)
- Deletes cache files in
.tldr/cache/ - Reports cleared size
Files removed:
- salsa_cache.bin (Salsa query cache)
- salsa_stats.json (legacy stats file)
- call_graph.json (call graph cache)
- *.pkl files (pickle files, if any)
- Any other files in the cache directory
Structsยง
- Cache
Clear Args - Arguments for the
cache clearcommand. - Cache
Clear Output - Output structure for cache clear command.