Expand description
Global developer cache detection and cleaning
This module handles system-wide package manager caches like ~/.npm, ~/.cargo/registry, etc. These are separate from project-specific artifacts (node_modules, target).
Structs§
- Cache
Definition - Definition of a known cache location
- Caches
Summary - Summary of all cache operations
- Clean
Result - Result of cleaning a cache
- Global
Cache - A global developer cache location
Enums§
- Clean
Method - How a cache was cleaned
Functions§
- calculate_
all_ sizes - Calculate sizes for all caches in parallel
- calculate_
cache_ size - Calculate size for a single cache (can be slow for large caches)
- clean_
cache - Clean a cache using the official command if available, otherwise rm -rf
- detect_
caches - Detect all existing global caches
- known_
caches - All known global cache locations