Call us: +1-415-738-4000
Ehcache can be used directly. It can also be used with the popular Hibernate Object/Relational tool and Java EE Servlet Caching. This quick guide gets you started on each of these. The rest of the documentation can be explored for a deeper understanding.
Download Ehcache ›
Beginning with Ehcache 1.7.1, Ehcache depends on SLF4J (http://www.slf4j.org) for logging. SLF4J is a logging framework with a choice of concrete logging implementations. See the chapter on Logging for configuration details.
Use Java 1.5 or 1.6.
See the Hibernate Caching chapter for more information.
Distributed Ehcache combines the power of the Terracotta platform with the ease of Ehcache application-data caching. Ehcache supports distributed caching with two lines of configuration.
By integrating Enterprise Ehcache with the Terracotta platform, you can take advantage of BigMemory and expanded Terracotta Server Arrays to greatly scale your application and cluster.
The distributed-cache documentation covers how to configure Ehcache in a Terracotta cluster and how to use its API in your application.
See the Web Caching chapter for more information.
startup.sh to start the server with the log in the foreground.
By default it will listen on port 8080,
will have both RESTful and SOAP web services enabled, and will use a sample Ehcache configuration from the WAR module.See the Cache Server chapter for more information.
Ehcache contains an early draft implementation of JCache contained in the net.sf.ehcache.jcache package. See the JSR107 chapter for usage.
Usually, with these, you are using Ehcache without even realising it. The first steps in getting more control over what is happening are:
