Suggestions appear as you type. Use the up and down arrows to choose one and Enter to open it.

This page's audience our own tag's counts — open to see them
–Visits
–Page views
–Clicks to vendors
–Time on page
–Reading now
Clicks to vendors, by tool
  • –
Top countries
  • –
Devices
  • –

– · visits, page views and clicks counted by our own tag, which counts more than our checked analytics; every figure rounded down · how we count

cache2k review

Free#24 of 27 in Caching Software

A focused, open-source Java cache with JCache compatibility and advanced loading controls.

6.7/10Editor score
cache2k6.7 Visit cache2k

Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026

cache2k is an open-source, in-memory object caching library for Java applications. It is designed for teams embedding a cache directly into Java software, with a programmatic API for configurable entry capacity, eviction, expiry policies, refresh-ahead loading, atomic operations, resilience policies, statistics, and event listeners. The project is distributed as Java dependencies for self-hosted application deployment, making it a focused fit for Java object caching rather than a general-purpose hosted cache service.

Its strongest area is cache behavior control. cache2k supports read-through loading with CacheLoader, refresh-ahead loading, exception handling, cache writers, and atomic cache operations. These capabilities give developers several ways to manage expiry, loading, updates, and failure behavior within the application cache. Statistics with JMX support add operational visibility, while XML-based configuration offers an alternative to programmatic setup. For Java teams that need more than simple key-value storage, this feature depth is a meaningful advantage.

The ecosystem fit is also practical for established Java stacks. Integrations include Spring Framework, Scala Cache, Datanucleus, Hibernate, JCache/JSR107, JMX, and Micrometer. JCache compatibility can help applications align with the JSR107 caching API, while the additional integrations connect cache2k with common Java frameworks and monitoring tooling. Its boundaries are clear: cache2k targets Java application objects, does not provide data persistence, and is self-hosted rather than managed. Choose it when an embedded Java cache with configurable policies and JCache compatibility matches the architecture. Consider an alternative when the requirement is a hosted service, persistent caching, or caching beyond Java application objects.

cache2k pros and cons

  • Where it wins
    • Open-source Java object caching with configurable capacity and eviction
    • Refresh-ahead, read-through loading, atomic operations, and resilience policies
    • JCache compatibility plus Spring, Hibernate, JMX, and Micrometer integrations
  • Where it doesn't
    • Focused on Java application objects rather than broader caching targets
    • Self-hosted Java dependency rather than a hosted caching service
    • Does not provide data persistence or AI features

cache2k fact sheet, pricing and score →

Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.

Last updated · How we research and update