Expand description
Byte-budget selection for on-disk KV slot cache eviction.
Pure decision logic, no IO: given the current set of cached slot files and
a byte budget, decide which files to delete. The disk-scanning and
deletion itself lives in gglib-proxy (slot_eviction.rs), which stats
the slot directory and hands the results here.
Structs§
- Slot
File Meta - Metadata for one on-disk slot file, gathered by the IO layer.
Constants§
- DISK_
BUDGET_ FRACTION_ DIVISOR - Divisor applied to (free disk space + cache footprint) for the auto budget.
Functions§
- compute_
auto_ disk_ budget_ bytes - Compute an auto-sized disk budget, in bytes.
- select_
evictions - Given all cached slot files and a byte budget, return the paths to delete.