/
ehcache.xml
69 lines (60 loc) · 2.62 KB
/
ehcache.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!--
Copyright (C) 2011 Orbeon, Inc.
This program is free software; you can redistribute it and/or modify it under the terms of the
GNU Lesser General Public License as published by the Free Software Foundation; either version
2.1 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Lesser General Public License for more details.
The full text of the license is available at http://www.gnu.org/copyleft/lesser.html
-->
<ehcache updateCheck="false" monitoring="off" dynamicConfig="true">
<!-- Where the disk store will go -->
<diskStore path="java.io.tmpdir/orbeon/cache"/>
<!-- Default cache (not used by Orbeon) -->
<defaultCache
maxElementsInMemory="10000"
eternal="false"
timeToIdleSeconds="120"
timeToLiveSeconds="120"
overflowToDisk="true"
diskSpoolBufferSizeMB="30"
maxElementsOnDisk="10000000"
diskPersistent="false"
diskExpiryThreadIntervalSeconds="120"
memoryStoreEvictionPolicy="LRU"
statistics="false"/>
<!-- XForms state store configuration. Only modify if you know what you are doing! -->
<!-- NOTE: We set this as a disk cache, but follow the Ehcache doc and set maxElementsInMemory to 1 instead of 0. -->
<cache name="xforms.state"
maxElementsInMemory="1"
memoryStoreEvictionPolicy="LFU"
overflowToDisk="true"
diskSpoolBufferSizeMB="10"
eternal="false"
timeToLiveSeconds="0"
timeToIdleSeconds="1800"
diskPersistent="false"
maxElementsOnDisk="0"
diskExpiryThreadIntervalSeconds="120"/>
<!-- XForms resources. Only modify if you know what you are doing! -->
<cache name="xforms.resources"
maxElementsInMemory="200"
memoryStoreEvictionPolicy="LFU"
overflowToDisk="true"
diskSpoolBufferSizeMB="1"
eternal="true"
timeToLiveSeconds="0"
timeToIdleSeconds="0"
diskPersistent="true"
maxElementsOnDisk="0"
diskExpiryThreadIntervalSeconds="120"/>
<!-- XForms XBL cache. Only modify if you know what you are doing! -->
<cache name="xforms.xbl"
maxElementsInMemory="200"
memoryStoreEvictionPolicy="LFU"
overflowToDisk="false"
eternal="false"
timeToLiveSeconds="0"
timeToIdleSeconds="0"/>
</ehcache>