Crate izihawa_ttl_cache

Crate izihawa_ttl_cache 

Source
Expand description

This crate provides a time sensitive key-value cache. When an item is inserted it is given a TTL. Any value that are in the cache after their duration are considered invalid and will not be returned on lookups. Entries are not removed from the cache on expiration. Instead the expired values are removed opportunistically as they are reference or if remove_expired is explicitly called.

Structs§

Iter
IterMut
OccupiedEntry
A view into a single occupied location in the cache that was unexpired at the moment of lookup.
TtlCache
A time sensitive cache.
VacantEntry
A view into a single empty location in the cache

Enums§

Entry
A view into a single location in a map, which may be vacant or occupied.