Go Cache Libraries
Cache libraries for Go
GitHub Star Comparison
| No | Name | GitHub Stars | Description | Trend | License | Type | Official Site |
|---|---|---|---|---|---|---|---|
| 1 | go-redis | ⭐ 21.6k | Type-safe Redis client for Go. Comprehensive support for Redis Cluster, Sentinel, pipelining, and Pub/Sub | Growing as standard library for Redis usage in Go in 2025. Widely adopted in applications requiring distributed caching | BSD-2-Clause | Redis Client | Official |
| 2 | GroupCache | ⭐ 13.3k | Distributed cache library developed by Google. Unique design as in-code distributed cache integrated into applications | Ensured reliability through Google production environment track record in 2025. Continued expansion in distributed systems | Apache-2.0 | Distributed Cache | Official |
| 3 | go-cache | ⭐ 8.7k | Simple Go in-memory cache. Provides basic caching functionality and item expiration in thread-safe manner | Popular as standard choice for small projects in 2025. Continued adoption for simplicity and reliability | MIT | Simple Cache | Official |
| 4 | BigCache | ⭐ 8.0k | High-throughput Go cache supporting millions of entries. Optimized for large datasets with minimized GC pressure | Important position in applications requiring large-capacity caching in 2025. Differentiated by memory efficiency | Apache-2.0 | High-Throughput Cache | Official |
| 5 | Ristretto | ⭐ 6.5k | High-performance Go cache library. Achieves high concurrent performance with TinyLFU admission policy and read time optimization | Reigns as the king of high-concurrency cache libraries in Go in 2025. First choice for scaling critical applications | Apache-2.0 | High-Concurrency Cache | Official |
| 6 | FreeCache | ⭐ 5.3k | Go cache library specialized in memory efficiency. Excellent performance in low concurrency environments with efficient memory allocation | Important choice for memory-constrained environments in 2025. Adopted in embedded systems and edge computing | MIT | Memory-Efficient Cache | Official |