Struct cached::stores::TimedCache
[−]
[src]
pub struct TimedCache<K: Hash + Eq, V> { /* fields omitted */ }
Cache store bound by time - Values are timestamped when inserted and are expired on attempted retrieval.
Methods
impl<K: Hash + Eq, V> TimedCache<K, V>
[src]
fn with_lifespan(seconds: u64) -> TimedCache<K, V>
Creates a new TimedCache
with a specified lifespan
fn with_lifespan_and_capacity(seconds: u64, size: usize) -> TimedCache<K, V>
Creates a new TimedCache
with a specified lifespan and
cache-store with the specified pre-allocated capacity