#cache #ttl #expire

ttl_cache

A cache that will expire values after a TTL

10 unstable releases (4 breaking)

0.5.1 Oct 31, 2018
0.5.0 Oct 29, 2018
0.4.2 Apr 9, 2018
0.3.0 Mar 12, 2017
0.1.1 Oct 8, 2016

#7 in Caching

Download history 226/week @ 2018-10-11 258/week @ 2018-10-18 177/week @ 2018-10-25 199/week @ 2018-11-01 205/week @ 2018-11-08 183/week @ 2018-11-15 115/week @ 2018-11-22 197/week @ 2018-11-29 204/week @ 2018-12-06 246/week @ 2018-12-13 190/week @ 2018-12-20 246/week @ 2018-12-27 29/week @ 2019-01-03

794 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