Skip to main content

Crate cache2

Crate cache2 

Source
Expand description

Bounded RAM + Region SSD cache for Tokio applications.

Mutations provide process-local visibility. An unclean restart opens empty; Cache::close_warm publishes a recoverable image.

Structs§

Cache
An open cache bound to one Tokio runtime.
CacheBuilder
Builder that combines a cache path, static geometry, runtime tuning, and a Tokio runtime binding before opening a Cache.
CacheIndexSnapshot
CacheIoDirectionSnapshot
Cumulative engine-request and runtime-file-I/O statistics for one direction. Request counters describe logical engine requests. Path counters describe positive runtime file operations and are not physical device I/O.
CacheIoPathSnapshot
CacheIoSnapshot
CacheL1Snapshot
CacheReclaimSnapshot
CacheSnapshot
Lock-free point-in-time operational counters and cache-owned resource accounting. Counters are process-local and reset on every open. Concurrent updates may appear across fields at slightly different instants.
DetailedCacheSnapshot
On-demand operational detail. Producing this value briefly reads every L1 shard and index partition and scans Region metadata. It does not scan index slots or Region data.
RegionSnapshot
RuntimeConfig
Process-local cache topology and resource tuning validated during open.
StaticConfig
Persistent L2 geometry and fixed-index sizing.
Value

Enums§

CacheHealth
CacheTier
IoEngine
Runtime implementation used by the independent read, write, and reclaim I/O pools.
IoMode
Buffered/direct policy for runtime cache-record I/O.
L1EvictionPolicy
Eviction policy for the process-local L1 tier.
StartupMode

Type Aliases§

Result