#cache #ttl #expire

ttl_cache

A cache that will expire values after a TTL

8 releases (4 breaking)

Uses old Rust 2015

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

#102 in Caching

Download history 28134/week @ 2024-03-14 26995/week @ 2024-03-21 23754/week @ 2024-03-28 23956/week @ 2024-04-04 26100/week @ 2024-04-11 31614/week @ 2024-04-18 35924/week @ 2024-04-25 35474/week @ 2024-05-02 38844/week @ 2024-05-09 39814/week @ 2024-05-16 37924/week @ 2024-05-23 40667/week @ 2024-05-30 36577/week @ 2024-06-06 35200/week @ 2024-06-13 38794/week @ 2024-06-20 31403/week @ 2024-06-27

149,920 downloads per month
Used in 49 crates (19 directly)

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

~49KB