Welcome to ehcache

Ehcache is a widely used java distributed cache for general purpose caching, Java EE and light-weight containers.

It features memory and disk stores, replicate by copy and invalidate, listeners, cache loaders, cache extensions, cache exception handlers, a gzip caching servlet filter and much more...

Ehcache is available under an Apache open source license and is actively developed, maintained and supported.

Latest News

1 March 2008: ehcache is SourceForge project of the month

Ehcache has been honoured as the February 2008 SourceForge project of the month. See http://sourceforge.net/community/index.php/potm-200802/.

21 February 2008: ehcache-1.4.1 maintenance release

The version of ehcache is a minor maintenance release. The main reason for the release was to include ehcache-failsafe.xml which was omitted from the public maven repository version. See the changelog for complete details.

31 January 2008: ehcache-1.4 released

The final version of ehcache-1.4 is available on sourceforge and the Maven central repository.

This version significantly enrichens the ehcache API and enhances extension of ehcache. The new features are:

  • You can now define CacheLoaders in the ehcache core API. They supplement the existing SelfPopulatingCache. They can be configured in ehcache.xml or programmatically. They can be used for cache warming, and simple pull-through caching. See the Cache Loaders chapter in the documentation for more details.
  • You can now define a CacheExceptionHandler and register it progammatically or in ehcache.xml. The enable an exception handler to be registered with a cache so that it is called on exception rather than the exception being thrown. See the Cache Exception Handler chapter in the documentation for more details.
  • You can now define CacheExtensions and register them progammatically or in ehcache.xml. A CacheExtension is a generic facility which holds a reference to a cache and is bound to the cache lifecycle, making possible a wide variety of extensions to behaviour. Usage examples are a cache refresh timer or a file monitoring mechanism. See the Cache Extensions chapter in the documentation for more details.

    This final release follows the second beta release by a month and fixes a few minor issues. See changelog for complete details.

1 January 2008: ehcache-1.4-beta2 released

The beta 2 version of ehcache-1.4 is available on sourceforge and the Maven central repository.

The second beta release fixes 10 bugs, most of them in the new features being introduced in 1.4.0, reported by beta testers. See the changelog for complete details.

More news...