Expand description
Disk-tier maintenance: listing, summaries, integrity checks, eviction and clearing (ADR 0015).
Every operation here is safe to run while a daemon serves and writes the same cache:
- entries are only ever removed whole, never edited, so a reader sees a complete entry or no entry;
- a removed entry is a miss, which costs a re-solve, never correctness;
- temporary files younger than
STALE_TEMPare never touched, because they may belong to a write in progress.
Structs§
- BadFile
- One file
DiskCache::verifyrejected. - GcReport
- What
DiskCache::gcdid. - Listed
- One file (or misplaced directory) under
<root>/v2. - Spread
- Minimum, median and maximum of a set of values.
- Summary
- What
DiskCache::summarizefound. - Unknown
Summary - Cached
check-satanswers ofunknownand their recorded effort (ADR 0009). - Usage
- A count of entries and their bytes.
- Verify
Report - What
DiskCache::verifyfound.
Enums§
- File
Kind - What a file under
<root>/v2is.
Functions§
- parse_
key - Parses a 64-character lowercase hex key.