Skip to main content

Module table_cache

Module table_cache 

Source
Expand description

LRU cache and Xor filter for reference table partial-cache mode.

TableLruCache provides O(1) slab-based LRU eviction for hot keys. TableXorFilter wraps xorf::Xor8 for negative-lookup short-circuiting.

Structs§

TableCacheMetrics
Aggregated cache metrics for a single table.
TableLruCache
O(1) slab-based LRU cache for reference table rows.
TableXorFilter
Wraps xorf::Xor8 for negative-lookup short-circuiting.

Enums§

LookupDecision
Decision from a cache-aware lookup.

Functions§

collect_cache_metrics
Collect metrics from an LRU cache and xor filter pair.