pub fn prune(root: &Path, limit: u64) -> Result<Pruned>Expand description
Evicts least recently used entries until the cache holds at most limit
bytes, and removes what no entry needs. Another prune in progress makes
this one return without doing anything.
Explicit pruning always remeasures the cache, including files changed in
place by external tools. Normal runs use prune_automatic.