#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

#98 in Caching

Download history 29095/week @ 2024-07-22 27957/week @ 2024-07-29 25979/week @ 2024-08-05 27539/week @ 2024-08-12 30404/week @ 2024-08-19 34254/week @ 2024-08-26 35700/week @ 2024-09-02 34680/week @ 2024-09-09 30610/week @ 2024-09-16 34714/week @ 2024-09-23 34123/week @ 2024-09-30 32675/week @ 2024-10-07 38954/week @ 2024-10-14 41817/week @ 2024-10-21 39154/week @ 2024-10-28 34369/week @ 2024-11-04

155,088 downloads per month
Used in 58 crates (20 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

~50KB