Expand description
A high-performance, concurrent, sync/async cache designed for flexibility and support for non-cloneable values.
§Features
- High Concurrency: Built with a sharded architecture to minimize lock contention.
- Sync & Async: Provides both blocking synchronous and non-blocking
asyncAPIs. - Non-Clone Support: Stores values in an
Arc<V>, avoidingV: Clonebounds. - Rich Policies: Time-to-Live (TTL), Time-to-Idle (TTI), and advanced eviction strategies like TinyLFU.
- Observability: Exposes detailed metrics for monitoring cache performance.
- Persistence: Optional
serdefeature for saving and loading cache state.
Re-exports§
pub use builder::CacheBuilder;pub use entry_api::Entry;pub use entry_api_async::AsyncEntry;pub use error::BuildError;pub use handles::AsyncCache;pub use handles::Cache;pub use listener::EvictionListener;pub use listener::EvictionReason;pub use metrics::MetricsSnapshot;pub use runtime::TaskSpawner;