Two-phase disk cache with LRU garbage collection, sized budgets, and crash-safe SQLite index.
Separates downloaded archives from installed (extracted) content, allowing cheap-to-rehydrate installed directories to be evicted before expensive-to-fetch archive blobs.
mod.rs- PublicDiskCachefacadepaths.rs- Sole source of cache path construction (archives, installed, staging)index.rs- SQLite open/migrate/query/touch/reconcilebudget.rs- Size accounting, watermark math, auto-scaling from disk spacegc.rs- Eviction loop, lease reaping, lock handlinglease.rs- RAIILeaseguard that pins entries during builds