Skip to main content

Module cache

Module cache 

Source
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§

MetadataTableCache
MetadataTableCacheConfig
MetadataTableCacheStats
NamespaceHeadSummary
Lightweight namespace head status.
Recency
A recency queue with lazy deletion.
WalTailProjectionCache
WalTailProjectionCacheConfig
Zero entries disables the cache; the row and byte limits bound what one entry may hold and what the cache may retain in total.
WalTailProjectionCacheKey
WalTailProjectionCacheStats

Enums§

ManifestLoadError
ManifestLoadFailureClass
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