Skip to main content

prune_automatic

Function prune_automatic 

Source
pub fn prune_automatic(root: &Path, limit: u64) -> Result<Pruned>
Expand description

Enforces the limit after a run, reusing size accounting while the cache’s directories are unchanged. Normal publication replaces records atomically and blobs are immutable, so directory changes invalidate the memo. A full reconciliation still runs at least once an hour.