Java Cache Libraries
Cache libraries for Java
GitHub Star Comparison
| No | Name | GitHub Stars | Description | Trend | License | Type | Official Site |
|---|---|---|---|---|---|---|---|
| 1 | Guava Cache | ⭐ 51.2k | Local cache library for Java developed by Google. Provided as part of Google Core Libraries for Java | Decreased new adoption in 2025 but continued use in legacy projects. Migration to Caffeine recommended | Apache-2.0 | Legacy Cache | Official |
| 2 | Redisson | ⭐ 24.1k | Java client and distributed object framework for Redis. Provides rich Redis data structures and Hibernate L2 cache | Important position in Redis ecosystem in 2025. Increasing adoption for Redis utilization in microservices | Apache-2.0 | Distributed Objects | Official |
| 3 | Caffeine | ⭐ 17.1k | High-performance caching library for Java. Provides top performance and rich features for single-node applications | Reigns as the pinnacle of Java caching in 2025. Rapid expansion through standard adoption in Spring Boot | Apache-2.0 | High-Performance Cache | Official |
| 4 | Jedis | ⭐ 12.2k | Simple and small Redis Java client. Provides lightweight and straightforward Redis access | Chosen for simple Redis access in 2025. Continued use in projects prioritizing lightweight nature | MIT | Simple Client | Official |
| 5 | Hazelcast | ⭐ 6.4k | High-availability cache and data grid for distributed systems. Excellent performance in large-scale distributed applications | Growing in cloud-native applications in 2025. Expanding adoption due to increased demand for distributed caching | Apache-2.0 | Data Grid | Official |
| 6 | Lettuce | ⭐ 5.7k | Asynchronous and reactive Redis Java client. Netty-based achieving high throughput and low latency | Growing with the spread of reactive programming in 2025. Expanding adoption in applications prioritizing asynchronous processing | Apache-2.0 | Reactive Client | Official |
| 7 | Ehcache | ⭐ 2.1k | Most established Java cache library. Provides mature feature set with distributed caching and Hibernate integration | Stable usage in enterprise environments in 2025. Maintains important position through legacy system compatibility | Apache-2.0 | Distributed Cache | Official |