#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

#348 in Database interfaces

Download history 5639/week @ 2022-12-03 5837/week @ 2022-12-10 5602/week @ 2022-12-17 2660/week @ 2022-12-24 4841/week @ 2022-12-31 5593/week @ 2023-01-07 6630/week @ 2023-01-14 7305/week @ 2023-01-21 7653/week @ 2023-01-28 6697/week @ 2023-02-04 7873/week @ 2023-02-11 7443/week @ 2023-02-18 7943/week @ 2023-02-25 7797/week @ 2023-03-04 8393/week @ 2023-03-11 7946/week @ 2023-03-18

33,296 downloads per month
Used in 34 crates (15 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

~48KB