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

Enums

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