Module cache_remove

Module cache_remove 

Source
Expand description

DiskCache::remove_by_key_prefix and the index-walk helpers it alone uses. A sibling of cache.rs because the removal is the one operation that walks the whole cacache index, twice, under two gates, and its argument is long enough that cache.rs crossed the module-size ratchet carrying it.

Constants§

INDEX_WALK_RETRY_AFTER_SECS 🔒
Retry-After handed to a caller whose removal was shed because another walk was in flight. Removal is idempotent and retry-safe, so shedding costs a legitimate client one retry, where queueing would let a caller park unbounded requests on work that starves cache writes.

Functions§

classify_index_walk_error 🔒
Classify an error yielded by cacache::list_sync on a walk that may be starting from a cache that was never written to.
index_root 🔒
cacache’s on-disk index root inside a cache directory.