Expand description
Cache types and configuration for runtime read paths. Consumed by
loonfs, which owns the runtime’s cache configuration and stats, and
which re-exports cache::Recency for the grep index’s own block cache.
Structs§
- Metadata
Table Cache - Metadata
Table Cache Config - Metadata
Table Cache Stats - Namespace
Head Summary - Lightweight namespace head status.
- Recency
- A recency queue with lazy deletion.
- WalTail
Projection Cache - WalTail
Projection Cache Config - Zero entries disables the cache; the row and byte limits bound what one entry may hold and what the cache may retain in total.
- WalTail
Projection Cache Key - WalTail
Projection Cache Stats
Enums§
- Manifest
Load Error - Manifest
Load Failure Class - Coarse failure class of a manifest load: corruption versus store trouble.
Constants§
- DEFAULT_
METADATA_ TABLE_ CACHE_ DECODED_ BYTES - Default decoded-byte budget for cached metadata table blocks. The byte budget is the only limit — one wide directory’s segment working set must fit, or warm listings re-fetch segments superlinearly — and zero disables the cache.
- DEFAULT_
WAL_ TAIL_ PROJECTION_ DECODED_ BYTES - DEFAULT_
WAL_ TAIL_ PROJECTION_ ROWS - Default bounds for WAL-tail projections, shared by the read-side projection cache and the publish-side tail reuse check.
Functions§
- load_
deleted_ namespace_ head_ summary - Summarizes a namespace whose head is a deletion tombstone.
- load_
namespace_ head_ summary