A production-grade Go cache framework with two-level caching, singleflight protection, and generic batch APIs.
jetcache-go is a high-performance cache framework for Go applications, inspired by Java JetCache and built on top of go-redis/cache. It provides essential features for large-scale services including two-level caching, cache penetration protection, and comprehensive monitoring capabilities.
Go developers building large-scale, production-grade services that require robust caching solutions with operational visibility and failure protection.
Developers choose jetcache-go for its production-ready combination of two-level caching (local+remote), built-in protection against cache stampedes and penetration, and comprehensive monitoring with Prometheus integration, all through a clean interface-driven design.
Redis cache library for Go
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Combines local cache (FreeCache/TinyLFU) with remote Redis, reducing latency and offloading remote calls for optimal performance in large-scale services.
Prevents cache stampedes with miss collapse and optional auto-refresh, essential for high-concurrency environments as highlighted in the features.
Provides type-safe MGet operations with pipeline optimization from v1.1.0+, enabling efficient bulk data retrieval without manual batching overhead.
Includes statistics collection and Prometheus plugin integration, offering operational visibility critical for production-grade caching, as detailed in the monitoring docs.
Primarily designed around go-redis, limiting flexibility for teams using other distributed cache systems like Memcached or custom backends.
Requires manual setup of both local and remote caches, which can be cumbersome for simple use cases compared to more lightweight caching libraries.
As a newer framework inspired by Java JetCache, it has a smaller community and fewer third-party extensions than established Go caching solutions.