Skip to main content

Module cache

Module cache 

Source
Expand description

Cache implementations for the Soma runtime.

  • MemoryCache — in-memory LRU with byte-level eviction
  • LocalCache — filesystem-backed with sharded directories
  • TieredCache — multi-level (memory → local) with auto-promotion
  • FsActionStore — persistent two-table store (action records + CAS)

Re-exports§

pub use fs_store::FsActionStore;
pub use local::LocalCache;
pub use memory::MemoryCache;
pub use tiered::TieredCache;

Modules§

fs_store
FsActionStore — the persistent two-table cache (action records + CAS).
gc
Cost-aware garbage collection for FsActionStore.
local
LocalCache — filesystem-backed [CacheStore] with sharded directories and atomic writes.
memory
MemoryCache — in-memory LRU [CacheStore] with byte-bounded eviction.
tiered
TieredCache — multi-level [CacheStore] with promotion on hit.