Go Cache Libraries

Cache libraries for Go

GitHub Star Comparison

Go Cache Libraries GitHub Star Comparison
NoNameGitHub StarsDescriptionTrendLicenseTypeOfficial Site
1go-redis⭐ 21.6kType-safe Redis client for Go. Comprehensive support for Redis Cluster, Sentinel, pipelining, and Pub/SubGrowing as standard library for Redis usage in Go in 2025. Widely adopted in applications requiring distributed cachingBSD-2-ClauseRedis ClientOfficial
2GroupCache⭐ 13.3kDistributed cache library developed by Google. Unique design as in-code distributed cache integrated into applicationsEnsured reliability through Google production environment track record in 2025. Continued expansion in distributed systemsApache-2.0Distributed CacheOfficial
3go-cache⭐ 8.7kSimple Go in-memory cache. Provides basic caching functionality and item expiration in thread-safe mannerPopular as standard choice for small projects in 2025. Continued adoption for simplicity and reliabilityMITSimple CacheOfficial
4BigCache⭐ 8.0kHigh-throughput Go cache supporting millions of entries. Optimized for large datasets with minimized GC pressureImportant position in applications requiring large-capacity caching in 2025. Differentiated by memory efficiencyApache-2.0High-Throughput CacheOfficial
5Ristretto⭐ 6.5kHigh-performance Go cache library. Achieves high concurrent performance with TinyLFU admission policy and read time optimizationReigns as the king of high-concurrency cache libraries in Go in 2025. First choice for scaling critical applicationsApache-2.0High-Concurrency CacheOfficial
6FreeCache⭐ 5.3kGo cache library specialized in memory efficiency. Excellent performance in low concurrency environments with efficient memory allocationImportant choice for memory-constrained environments in 2025. Adopted in embedded systems and edge computingMITMemory-Efficient CacheOfficial