Crate fibre_cache

Crate fibre_cache 

Source
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 async APIs.
  • Non-Clone Support: Stores values in an Arc<V>, avoiding V: Clone bounds.
  • 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 serde feature 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;

Modules§

builder
entry_api
entry_api_async
error
handles
listener
metrics
policy
runtime
snapshot