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)
2 comments
[ 7.6 ms ] story [ 21.8 ms ] thread