#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

#139 in Caching

Download history 24021/week @ 2023-10-22 21443/week @ 2023-10-29 19152/week @ 2023-11-05 21013/week @ 2023-11-12 18121/week @ 2023-11-19 23428/week @ 2023-11-26 21963/week @ 2023-12-03 21010/week @ 2023-12-10 18860/week @ 2023-12-17 11427/week @ 2023-12-24 16983/week @ 2023-12-31 24370/week @ 2024-01-07 24093/week @ 2024-01-14 27255/week @ 2024-01-21 27011/week @ 2024-01-28 24335/week @ 2024-02-04

104,429 downloads per month
Used in 56 crates (17 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