Crates.io | freqache |
lib.rs | freqache |
version | 0.6.0 |
source | src |
created_at | 2021-04-20 03:51:57.257077 |
updated_at | 2023-01-23 11:59:40.520427 |
description | A thread-safe LFU cache with iterator |
homepage | |
repository | https://github.com/haydnv/freqache |
max_upload_size | |
id | 386916 |
size | 25,001 |
A thread-safe Rust LFU cache which supports iteration.
Example:
use freqache::LFUCache;
let mut cache = LFUCache::new();
cache.insert("key1");
cache.insert("key2");
cache.insert("key3");
cache.insert("key2");
for key in cache.iter() {
println!("key: {}", key);
}