Expand description
A minimalist FIFO (First In, First Out) cache with TTL (Time To Live) support.
§Example
use fifo_cache::FifoCache;
use std::time::Duration;
let mut cache = FifoCache::new(100, Duration::from_secs(60));
cache.insert("key1", "value1");
if let Some(value) = cache.get(&"key1") {
println!("Found: {}", value);
}
Structs§
- Fifo
Cache - A FIFO cache with TTL support.