Skip to main content

Module maint

Module maint 

Source
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_TEMP are never touched, because they may belong to a write in progress.

Structs§

BadFile
One file DiskCache::verify rejected.
GcReport
What DiskCache::gc did.
Listed
One file (or misplaced directory) under <root>/v2.
Spread
Minimum, median and maximum of a set of values.
Summary
What DiskCache::summarize found.
UnknownSummary
Cached check-sat answers of unknown and their recorded effort (ADR 0009).
Usage
A count of entries and their bytes.
VerifyReport
What DiskCache::verify found.

Enums§

FileKind
What a file under <root>/v2 is.

Functions§

parse_key
Parses a 64-character lowercase hex key.