moka 0.3.0

A fast and concurrent cache library inspired by Caffeine (Java) and Ristretto (Go)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Provides a thread-safe, asynchronous (futures aware) cache implementation.
//!
//! To use this module, enable a crate feature called "future".

mod builder;
pub(crate) mod cache;

pub use builder::CacheBuilder;
pub use cache::Cache;

/// Provides extra methods that will be useful for testing.
pub trait ConcurrentCacheExt<K, V> {
    /// Performs any pending maintenance operations needed by the cache.
    fn sync(&self);
}