Trait freqache::Policy [−][src]
pub trait Policy<K, V>: Sized + Send { fn can_evict(&self, value: &V) -> bool; fn evict<'life0, 'life1, 'async_trait>(
&'life0 self,
key: K,
value: &'life1 V
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait; }
Expand description
A cache eviction policy.