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)
Agree,I have used moka in my application of gateway for building the connection pool of http.It is a wonderful crate.Thanks!