Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

Ehcache

ehcache.org

  • Free plan
  • Open source
  • API
  • Self-hosted
7.4 Club score Visit ehcache.org

What Ehcache is

Ehcache is an open-source Java cache for application data, database results, and web pages. Its purpose is to improve performance, reduce database work, and support scalability. It can run inside an application or in mixed in-process and out-of-process deployments, including terabyte-sized caches. Ehcache 3 supports off-heap storage, including configurations that use only off-heap memory, and is compatible with the JCache API defined by JSR-107. The project describes Spring Caching and Hibernate integration through javax.cache support. Configuration can be provided through XML or the Java API. Ehcache can use Terracotta clustered storage to share cache data across application instances, and Ehcache 3.11 adds resource sharing between caches. It also supports JTA-managed XA transactions, including two-phase commit and crash recovery; the documented isolation level is Read-Committed, and Bitronix 2.1.4 is the only tested transaction manager. Ehcache 3.11 requires Java 8 or later and is the last release line to support Java 8. The software is free under the Apache 2.0 license.

Who it suits

Ehcache suits Java teams that need application caching, including deployments using off-heap storage, JCache, or clustered storage. Teams using XA transactions should account for the documented isolation and tested-manager limits.

Good to know, and what to watch

  • Free and open source under Apache 2.0.
  • Supports off-heap storage.
  • Compatible with JCache API JSR-107.
  • XML and Java API configuration are available.
  • Can share cache data across application instances.
  • Ehcache 3.11 is the final line supporting Java 8.
  • XA isolation is limited to Read-Committed.
  • Bitronix 2.1.4 is the only tested transaction manager.

Enterprise Ehcache

—

Ehcache

Free

Ehcache open-source

Free

Free plan

Getting started

  1. Open the Ehcache website
  2. Use the Java API or XML configuration
  3. Choose in-process or mixed in-process/out-of-process deployment
  4. Select Ehcache or JCache as the cache engine
  5. Configure storage, persistence, or Terracotta clustered sharing as needed

Limits to check

Ehcache 3.11 requires Java 8 or later. For XA caches, Read-Committed is the only supported isolation level, and Bitronix 2.1.4 is the only tested transaction manager.

The verdict

Ehcache offers multiple deployment and storage approaches for Java caching, along with JCache compatibility and integrations described by the project. Check the Java requirement and XA transaction constraints against your application before adopting it.

Questions people ask

Is Ehcache free?

Yes. The Ehcache plan is free at no cost and uses the Apache 2.0 license.

Where can Ehcache run?

It supports API and self-hosted use, with in-process and mixed in-process/out-of-process deployments.

Does Ehcache support JCache?

Yes. Ehcache 3 is compatible with the JCache API defined by JSR-107.

Can Ehcache share data between applications?

Yes. Terracotta clustered storage can share cache data across application instances.

What Java version does Ehcache 3.11 need?

Ehcache 3.11 requires Java 8 or later and is the last release line supporting Java 8.

What the maker publishes

API documentation
The project publishes JavaDoc for core, clustered and transaction modules plus older 2.x APIs. source
Cache sharing
Ehcache 3.11 adds the ability to share resources between caches. source
Cache-through extensibility
CacheLoaderWriter combines read-through loading and write-through persistence callbacks. source
Clustering
Ehcache can use Terracotta clustered storage to share cache data across application instances. source
Configuration
Ehcache supports XML configuration as well as configuration through its Java API. source
Deployment model
The project supports in-process caching and mixed in-process/out-of-process deployments with caches sized for terabytes. source
Deployment scale
It supports in-process and mixed in-process/out-of-process deployments, including terabyte-sized caches. source
Distributed caching
Terracotta integration enables clustered caches across distributed nodes. source
Documentation depth
The current guide covers getting started, tiering, XML, JCache, clustering, expiry, resilience, serializers, transactions, writers, listeners, OSGi and tuning. source
Downloads
Official downloads include Ehcache 3.11 jars, clustering kits and the older 2.10.8 archive. source
Eviction
The product provides configurable eviction strategies for deciding which entries leave a cache. source
Expiration
Cache entries can use configurable expiration policies, including time-to-live settings. source
Framework integrations
The project describes out-of-the-box Spring Caching and Hibernate integration through javax.cache support. source
Installation
Ehcache 3.11.1 can be added with Maven or Gradle using org.ehcache:ehcache:3.11.1. source
Java requirement
Ehcache 3.11 requires Java 8 or later, and is the last Ehcache release line to support Java 8. source
JCache compatibility
Ehcache 3 implements the JSR-107 JCache API so applications can use the standard cache interfaces. source
Licence
The open-source project is distributed under the Apache License 2.0. source
Limit: administration and recovery
Gartner reviewers criticized difficult debugging and weaker administration, data-recovery and export/import capabilities. source
Limit: high availability and performance
Gartner feedback said high-availability and performance lagged leading alternatives in some deployments. source
Maintenance note
The downloads page says FOSS Ehcache 2.x is no longer actively maintained. source
Maker founded and size
LinkedIn lists Terracotta as founded in 2003 with a company size of 51–200 employees. source
Maker headquarters
LinkedIn lists Terracotta headquarters in San Francisco, California. source
Maker ownership
Ehcache is maintained by Terracotta, Inc., which the official site identifies as a Software AG company. source
Maven metadata
Maven Central lists version 3.11.1 under the Apache Software License 2.0 and identifies IBM Corp. as the organization. source

Checked against the maker's pages on 15 Oct 2026.