Table of Contents | ||
---|---|---|
|
...
Here I've configured seven inmemory caches. More configuration details can be found on in the ehcache configuration documentation.
...
timeToLive
The maximum number of seconds an element can exist in the cache regardless of use. The element expires at this limit and will no longer be returned from the cache. The default value is 0, which means no TTL eviction takes place (infinite lifetime).
timeToIdle
The maximum number of seconds an element can exist in the cache without being accessed. The element expires at this limit and will no longer be returned from the cache. The default value is 0, which means no TTI eviction takes place (infinite lifetime).
- eternal
when set to "true", overridestimeToLive
andtimeToIdle
so that no expiration can take place. - maxEntriesLocalHeap
Sets the maximum number of objects that will be held on heap memory. 0 = no limit.
...