#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 57/week @ 2018-05-27 122/week @ 2018-06-03 95/week @ 2018-06-10 143/week @ 2018-06-17 157/week @ 2018-06-24 193/week @ 2018-07-01 62/week @ 2018-07-08 90/week @ 2018-07-15 84/week @ 2018-07-22 94/week @ 2018-07-29 97/week @ 2018-08-05 78/week @ 2018-08-12 70/week @ 2018-08-19

256 downloads per month
Used in 1 crate

MIT/Apache

18KB
268 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