For a caching library for Java applications, the strongest matches are ben-manes/caffeine (Caffeine is a high-performance, thread-safe, in-memory caching library for), google/guava (Guava provides a robust, high-performance in-memory caching implementation that) and hazelcast/hazelcast (Hazelcast is a high-performance, distributed in-memory data grid that). apache/ignite and redisson/redisson round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.
We curate open-source GitHub repositories matching “best java caching libraries”. Results are ranked by relevance to your query — pick filters below to narrow, or refine with AI.
Caffeine is a high-performance caching library for the Java virtual machine designed to manage object lifecycles within the application heap. It functions as a thread-safe, memory-resident data store that reduces latency by keeping frequently accessed objects available for immediate retrieval. The library distinguishes itself through a sophisticated eviction strategy that balances recency and frequency to determine which entries to retain. It utilizes a frequency-based admission policy to evaluate the historical access patterns of new data, ensuring that the cache remains populated with the m
Caffeine is a high-performance, thread-safe, in-memory caching library for Java that provides advanced eviction policies and asynchronous loading, making it a flagship solution for reducing application latency.
Guava is a Java standard library extension and utility toolkit that provides optimized data structures, concurrency tools, and core extensions. It serves as a comprehensive set of helpers for Java development, focusing on reducing repetitive boilerplate logic. The project is distinguished by its specialized implementations of immutable collections, which ensure thread safety and data consistency by preventing accidental modification. It also includes a dedicated graph data structure library for modeling and traversing networks of interconnected nodes and edges, alongside advanced collection t
Guava provides a robust, high-performance in-memory caching implementation that is widely used in the Java ecosystem for reducing latency, though it is a general-purpose utility library rather than a dedicated JSR-107 caching framework.
Hazelcast is a distributed data platform that combines an in-memory data grid with a stream processing engine to support real-time analytics and event-driven applications. It functions as a partitioned, distributed key-value store that replicates data across cluster nodes to provide low-latency access and high availability. The platform also serves as a distributed SQL query engine, allowing users to execute standard SQL statements against both in-memory datasets and external data sources. What distinguishes Hazelcast is its use of a distributed consensus subsystem to maintain strongly consis
Hazelcast is a high-performance, distributed in-memory data grid that provides robust caching capabilities, JSR-107 (JCache) support, and advanced concurrency features, making it a comprehensive solution for low-latency Java applications.
Ignite is a distributed in-memory data grid and compute platform. It functions as a distributed SQL database and storage engine designed to store and process large datasets in RAM to minimize latency and increase calculation speed. The system is distinguished by a multi-tier storage engine that manages data placement across memory and disk to balance high-speed access with large capacity. It features a distributed compute grid that executes custom logic directly on the nodes where data resides to reduce network traffic. The platform provides a broad set of capabilities including ACID transac
Apache Ignite is a distributed in-memory data grid that provides high-performance caching capabilities alongside its broader database and compute features, making it a powerful, albeit heavy, solution for Java-based in-memory data management.
Redisson is a Java library and Redis client that functions as a distributed Java object mapper, caching provider, and locking framework. It maps Java collections and concurrency primitives to distributed implementations backed by Redis and Valkey, providing synchronous, asynchronous, and reactive APIs for interacting with these data stores. The project distinguishes itself by providing a comprehensive suite of distributed coordination tools, including a locking framework for managing semaphores and countdown latches across multiple application nodes. It also serves as a distributed messaging
Redisson is a robust Java library that provides distributed caching and JSR-107 support by leveraging Redis, making it a powerful tool for high-performance data retrieval and concurrency management across application nodes.