Thread safe LRU cache in Rust

(crates.io)

2 points | by bijan7 8 hours ago ago

1 comments

  • bijan7 8 hours ago ago

    This is a thread-safe implementation of an LRU (Least Recently Used) cache in Rust. The `LruCache` struct uses sharding to improve concurrency by splitting the cache into multiple smaller segments, each protected by a mutex. Benchmarks compares this to Moka (https://crates.io/crates/moka)