freqache

Crates.iofreqache
lib.rsfreqache
version0.6.0
sourcesrc
created_at2021-04-20 03:51:57.257077
updated_at2023-01-23 11:59:40.520427
descriptionA thread-safe LFU cache with iterator
homepage
repositoryhttps://github.com/haydnv/freqache
max_upload_size
id386916
size25,001
Haydn Vestal (haydnv)

documentation

README

freqache

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);
}
Commit count: 27

cargo fmt