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