Struct network_collections::least_recently_used_cache::LeastRecentlyUsedCacheWithExpiry[][src]

pub struct LeastRecentlyUsedCacheWithExpiry<K: Eq + Hash, V> { /* fields omitted */ }

A least recently used cache with expiry of items.

Expiry is only checked on access.

Methods

impl<K: Eq + Hash, V> LeastRecentlyUsedCacheWithExpiry<K, V>
[src]

The expiry_period can be zero; entries are considered to be expired when this is exceeded.

Gets a value.

Gets a value that can be mutated.

Insert an item.

Trait Implementations

impl<K: Debug + Eq + Hash, V: Debug> Debug for LeastRecentlyUsedCacheWithExpiry<K, V>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations