Thread safe LRU cache in Rust

(crates.io)

2 points | by bijan7 9 months ago ago

2 comments

  • bijan7 9 months 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)

    • lsk569937453 9 months ago ago

      Agree,I have used moka in my application of gateway for building the connection pool of http.It is a wonderful crate.Thanks!