Skip to main content

Module features

Module features 

Source
Expand description

Opt-in feature catalog. Each submodule is gated by its own Cargo feature flag and adds a specific capability to the base block cache without bloating the core build.

See Cargo.toml [features] for the catalog + the README’s “Features” section for per-feature p99 + memory cost + use cases.

Modules§

arc
Adaptive Replacement Cache (Megiddo + Modha, 2003).
concurrent_shards
Sharded block cache: split keyspace into N independent shards by hash(key) % N. Each shard wraps the base BlockCache behind its own Mutex, so concurrent readers/writers on different shards don’t contend.
metrics
Per-instance counters: hits, misses, evictions, admissions, and shard-contention events.
tinylfu
W-TinyLFU admission policy (Einziger, Friedman + Manes, ACM TOS 13(4), 2017).
weighted
Weighted block cache: per-entry byte size.