Skip to main content

Module caches

Module caches 

Source
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§

CacheDefinition
Definition of a known cache location
CachesSummary
Summary of all cache operations
CleanResult
Result of cleaning a cache
GlobalCache
A global developer cache location

Enums§

CleanMethod
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