Created
December 26, 2016 19:31
-
-
Save atishn/73d8476299d7dc0a3148ff76913a06fa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:noNamespaceSchemaLocation="ehcache.xsd" updateCheck="true" | |
monitoring="autodetect" dynamicConfig="true"> | |
<!-- Sample cache named cache1 | |
This cache contains a maximum in memory of 10000 elements, and will expire | |
an element if it is idle for more than 5 minutes and lives for more than | |
10 minutes. | |
If there are more than 10000 elements it will overflow to the | |
disk cache, which in this configuration will go to wherever java.io.tmp is | |
defined on your system. On a standard Linux system this will be /tmp" --> | |
<defaultCache name="cache1" | |
maxEntriesLocalHeap="10000" | |
maxEntriesLocalDisk="1000" | |
eternal="false" | |
timeToIdleSeconds="300" timeToLiveSeconds="600" | |
memoryStoreEvictionPolicy="LFU" | |
transactionalMode="off"> | |
<persistence strategy="localTempSwap" /> | |
</defaultCache> | |
<cache name="cacheDepartments" | |
maxEntriesLocalHeap="3000" | |
eternal="false" | |
timeToIdleSeconds="300" timeToLiveSeconds="600" | |
memoryStoreEvictionPolicy="LFU" | |
transactionalMode="off"> | |
<persistence strategy="localTempSwap" /> | |
</cache> | |
</ehcache> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment