Rust Cache Libraries
Cache libraries for Rust
GitHub Star Comparison
| No | Name | GitHub Stars | Description | Trend | License | Type | Official Site |
|---|---|---|---|---|---|---|---|
| 1 | Mini-Redis | ⭐ 4.5k | Redis implementation for Tokio learning. Designed for educational purposes but also functions as lightweight Redis server | Important resource for Rust/Tokio learning in 2025. Increasing utilization for prototyping and embedded use | MIT | Educational Redis | Official |
| 2 | redis-rs | ⭐ 4.0k | Official Redis client for Rust. Comprehensive solution supporting async, connection pooling, and Redis Cluster | Standard for distributed caching in Rust in 2025. Expanding adoption through integration with Tokio ecosystem | BSD-3-Clause | Redis Client | Official |
| 3 | Moka | ⭐ 2.2k | High-performance concurrent cache library for Rust. Inspired by Caffeine library, provides TinyLFU, async support, and Tokio integration | Absolute king of Rust cache libraries in 2025. Established position through adoption by crates.io and other major projects | Apache-2.0 | High-Performance Cache | Official |
| 4 | Mini-Moka | ⭐ 137 | Lightweight version of Moka cache library. Provides LFU/LRU policies and full concurrency for simple use cases | Popular as lightweight alternative to Moka in 2025. Important choice for resource-constrained applications | Apache-2.0 | Lightweight Cache | Official |
| 5 | cached | - | Provides function memoization and caching structures. Comprehensive Rust caching support with procedural macros, async support, and Redis integration | Expanding adoption as feature-rich caching solution in 2025. Differentiated by Redis integration and macro API | MIT | Memoization Cache | Official |
| 6 | LocalLRU | - | High-speed LRU cache based on thread-local storage. Lock-free design providing excellent performance during high iteration scenarios | Gaining attention in scenarios requiring ultra-high performance in 2025. Chosen for performance exceeding Moka beyond 1 million iterations | MIT | Thread-Local Cache | Official |