#cache #ttl #expire

ttl_cache

A cache that will expire values after a TTL

8 releases

0.4.2 Apr 9, 2018
0.4.1 Apr 7, 2018
0.3.0 Mar 12, 2017
0.2.1 Oct 15, 2016
0.1.1 Oct 8, 2016

#6 in Caching

Download history 75/week @ 2018-08-21 73/week @ 2018-08-28 104/week @ 2018-09-04 156/week @ 2018-09-11 172/week @ 2018-09-18 85/week @ 2018-09-25 123/week @ 2018-10-02 246/week @ 2018-10-09 241/week @ 2018-10-16 167/week @ 2018-10-23 218/week @ 2018-10-30 203/week @ 2018-11-06 112/week @ 2018-11-13

256 downloads per month
Used in 1 crate

MIT/Apache

22KB
331 lines

ttl_cache

Build Status Documentation

This crate provides a time sensitive key-value FIFO cache. When the cache is created it is given a TTL. Any value that are in the cache for longer than this duration are considered invalid and will not be returned. Supports 1.20 +


lib.rs:

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.

Dependencies

~45KB