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
- A view into a single occupied location in the cache that was unexpired at the moment of lookup.
- A time sensitive cache.
- A view into a single empty location in the cache
Enums
- A view into a single location in a map, which may be vacant or occupied.