Skip to main content

CACHE_SIZE_CAP

Constant CACHE_SIZE_CAP 

Source
pub const CACHE_SIZE_CAP: u64 = _; // 536_870_912u64
Expand description

Size cap (bytes) for a single workspace’s cache directory. At startup, if the directory exceeds this, we reset it — simpler than LRU eviction and the rebuild cost is bounded (it’s just the next workspace scan running as if cold). 512 MiB fits a mega-workspace (50 k files × ~10 KB average StubSlice) with headroom and is small enough that no reasonable disk will choke on it.