Skip to content
This repository has been archived by the owner on Sep 3, 2023. It is now read-only.

haydnv/freqache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
}

About

A thread-safe Rust LFU cache which supports a custom eviction policy

Resources

License

Stars

Watchers

Forks

Languages