kvarn::comprash

Struct MokaCache

source
pub struct MokaCache<K: Hash + Eq + Send + Sync + 'static, V: Clone + Send + Sync + 'static> {
    pub cache: Cache<K, V>,
    /* private fields */
}
Expand description

Cache using [moka].

Fields§

§cache: Cache<K, V>

The inner cache, with direct access allowed. Please check the size of your item before inserting.

Trait Implementations§

source§

impl<K: Debug + Hash + Eq + Send +