Module indy_vdr::pool::cache::strategy

source ·

Structs§

  • A simple cache that uses timestamps to expire entries. Once the cache fills up, the oldest entry is evicted. Also uses LRU to evict entries that have not been accessed recently. Uses a hashmap for lookups and a BTreeMap for ordering by age
  • A simple struct to hold a value and the expiry offset needed because items can be inserted with custom ttl values that may need to be updated/reordered