Expand description
Cache abstraction with local core stores and opt-in remote stores.
The core crate exports CacheStore, CacheRegistry, MemoryCache, and TypedStore.
Local, infrastructure-free adapters live in this crate: memory is always available,
and filesystem storage is available with the fs feature.
Remote infrastructure stores live in contrib/ adapter crates and must be registered explicitly.
No store is registered by default; construct and inject a registry at the composition boundary.
Re-exports§
pub use adapters::fs::FileCache;pub use adapters::fs::FileCacheConfig;pub use adapters::fs::register_file_cache;pub use adapters::memory::MemoryCache;pub use adapters::memory::register_memory;pub use config::CacheConfig;pub use config::MemoryConfig;pub use registry::CacheRegistry;pub use registry::CacheStore;pub use registry::CacheStoreFactory;pub use typed_store::TypedStore;
Modules§
- adapters
- Built-in cache adapters. Built-in cache adapters.
- config
- Cache store configuration and store-specific options.
- memory
- Compatibility exports for the original in-memory adapter module path. Compatibility exports for the original in-memory adapter module path.
- registry
- Explicit store registry and config-driven selection. Explicit cache store registry.
- typed_
store - Generic JSON-serialised typed store backed by a
CacheStore.