Trait cached::CloneCached

source ·
pub trait CloneCached<K, V> {
    // Required method
    fn cache_get_expired<Q>(&mut self, _key: &Q) -> (Option<V>, bool)
       where K: Borrow<Q>,
             Q: Hash + Eq + ?Sized;
}
Expand description

Extra cache operations for types that implement Clone

Required Methods§

source

fn cache_get_expired<Q>(&mut self, _key: &Q) -> (Option<V>, bool)
where K: Borrow<Q>, Q: Hash + Eq + ?Sized,

Attempt to retrieve a cached value and indicate whether that value was evicted.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<K: Hash + Eq + Clone, V: Clone> CloneCached<K, V> for TimedCache<K, V>

source§

impl<K: Hash + Eq + Clone, V: Clone> CloneCached<K, V> for TimedSizedCache<K, V>

source§

impl<K: Hash + Eq + Clone, V: CanExpire + Clone> CloneCached<K, V> for ExpiringValueCache<K, V>