Ehcache.xml Documentation

This document will provide details about the ehcache.xml file used for 2nd level caching.

General Information

For a general overview of Hibernate's Second Level Cache, please see http://ehcache.org/documentation/hibernate.html

ActionCenters Use of ehcache

In actioncenters-udm/src/main/resources is the ehcache.xml file.

The below five (5) items are mainly used in our definitions:

maxElementsInMemory: A way to put a cap on the maximum elements cached in memory.

eternal: Sets whether elements are eternal. If eternal, timeouts are ignored and the element is never expired.

timeToIdleSeconds: Sets the time to idle for an element before it expires."

timeToLiveSeconds: Sets the time to live for an element before it expires.

overflowToDisk: Option to overflow to disk if memory is capped.