Skip to main content

Module cache_clear

Module cache_clear 

Source
Expand description

Cache clear command implementation

CLI command: tldr cache clear [--project PATH]

Clears the cache for a TLDR project:

  1. If daemon is running, stops it first (or sends Clear command)
  2. Deletes cache files in .tldr/cache/
  3. 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ยง

CacheClearArgs
Arguments for the cache clear command.
CacheClearOutput
Output structure for cache clear command.