Struct cached::stores::UnboundCache [] [src]

pub struct UnboundCache<K, V> { /* fields omitted */ }

Default unbounded cache

Methods

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

[src]

Creates an empty UnboundCache

[src]

Creates an empty UnboundCache with a given pre-allocated capacity

Trait Implementations

impl<K: Hash + Eq, V> Cached<K, V> for UnboundCache<K, V>
[src]

[src]

Attempt to retrieve a cached value

[src]

Insert a key, value pair

[src]

Return the current cache size (number of elements)

[src]

Return the number of times a cached value was successfully retrieved

[src]

Return the number of times a cached value was unable to be retrieved

[src]

Return the cache capacity

[src]

Return the lifespan of cached values (time to eviction)