12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <!-- for ehcache 2.x -->
- <ehcache updateCheck="false" dynamicConfig="false">
- <diskStore path="java.io.tmpdir"/>
- <cacheManagerEventListenerFactory class="" properties=""/>
- <!--Default Cache configuration. These will applied to caches programmatically created through
- the CacheManager.
- The following attributes are required for defaultCache:
- maxInMemory - Sets the maximum number of objects that will be created 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. Is only used
- if the element is not eternal. Idle time is now - last accessed time
- timeToLiveSeconds - Sets the time to live for an element before it expires. Is only used
- if the element is not eternal. TTL is now - creation time
- overflowToDisk - Sets whether elements can overflow to disk when the in-memory cache
- has reached the maxInMemory limit.
- -->
- <defaultCache
- maxElementsInMemory="50000"
- eternal="false"
- timeToIdleSeconds="3600000"
- timeToLiveSeconds="3600000"
- overflowToDisk="true">
- </defaultCache>
- <!--Predefined caches. Add your cache configuration settings here.
- If you do not have a configuration for your cache a WARNING will be issued when the
- CacheManager starts
- The following attributes are required for defaultCache:
- name - Sets the name of the cache. This is used to identify the cache. It must be unique.
- maxInMemory - Sets the maximum number of objects that will be created 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. Is only used
- if the element is not eternal. Idle time is now - last accessed time
- timeToLiveSeconds - Sets the time to live for an element before it expires. Is only used
- if the element is not eternal. TTL is now - creation time
- overflowToDisk - Sets whether elements can overflow to disk when the in-memory cache
- has reached the maxInMemory limit.
- -->
- <cache name="sysCache"
- maxElementsInMemory="50000"
- eternal="false"
- timeToIdleSeconds="3600000"
- timeToLiveSeconds="3600000"
- overflowToDisk="false">
- </cache>
- <cache name="shopCache"
- maxElementsInMemory="50000"
- eternal="false"
- timeToIdleSeconds="3600000"
- timeToLiveSeconds="3600000"
- overflowToDisk="false">
- </cache>
- </ehcache>
|