This repository has been archived by the owner on Apr 30, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
80 additions
and
7 deletions.
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="ehcache.xsd" | ||
updateCheck="false" monitoring="autodetect" | ||
dynamicConfig="true"> | ||
|
||
<diskStore path="java.io.tmpdir"/> | ||
|
||
<defaultCache | ||
maxEntriesLocalHeap="10000" | ||
eternal="false" | ||
overflowToDisk="true" | ||
timeToIdleSeconds="20" | ||
timeToLiveSeconds="60"> | ||
</defaultCache> | ||
|
||
<!-- default cache named cache --> | ||
<cache name="cache" | ||
maxEntriesLocalHeap="10000" | ||
maxEntriesLocalDisk="1000" | ||
eternal="false" | ||
overflowToDisk="true" | ||
diskSpoolBufferSizeMB="20" | ||
timeToIdleSeconds="300" | ||
timeToLiveSeconds="600" | ||
memoryStoreEvictionPolicy="LFU" | ||
transactionalMode="off" | ||
/> | ||
|
||
<!-- | ||
Sample cache named sampleCache1 | ||
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" | ||
--> | ||
<cache name="sampleCache1" | ||
maxEntriesLocalHeap="10000" | ||
maxEntriesLocalDisk="1000" | ||
eternal="false" | ||
overflowToDisk="true" | ||
diskSpoolBufferSizeMB="20" | ||
timeToIdleSeconds="300" | ||
timeToLiveSeconds="600" | ||
memoryStoreEvictionPolicy="LFU" | ||
transactionalMode="off" | ||
/> | ||
|
||
<!-- | ||
Sample cache named sampleCache2 | ||
This cache has a maximum of 1000 elements in memory. There is no overflow to disk, so 1000 | ||
is also the maximum cache size. Note that when a cache is eternal, timeToLive and | ||
timeToIdle are not used and do not need to be specified. | ||
--> | ||
<cache name="sampleCache2" | ||
maxEntriesLocalHeap="1000" | ||
eternal="true" | ||
overflowToDisk="false" | ||
memoryStoreEvictionPolicy="FIFO" | ||
/> | ||
|
||
<!-- | ||
Sample cache named sampleCache3. This cache overflows to disk. The disk store is | ||
persistent between cache and VM restarts. The disk expiry thread interval is set to 10 | ||
minutes, overriding the default of 2 minutes. | ||
--> | ||
<cache name="sampleCache3" | ||
maxEntriesLocalHeap="500" | ||
eternal="false" | ||
overflowToDisk="true" | ||
timeToIdleSeconds="300" | ||
timeToLiveSeconds="600" | ||
diskPersistent="true" | ||
diskExpiryThreadIntervalSeconds="1" | ||
memoryStoreEvictionPolicy="LFU" | ||
/> | ||
</ehcache> |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.