1
|
<ehcache>
|
2
|
|
3
|
<!-- Sets the path to the directory where cache .data files are created.
|
4
|
If the path is a Java System Property it is replaced by its value in the
|
5
|
running VM. The following properties are translated: user.home - User's home
|
6
|
directory user.dir - User's current working directory java.io.tmpdir - Default
|
7
|
temp file path -->
|
8
|
<diskStore path="java.io.tmpdir"/>
|
9
|
|
10
|
|
11
|
<!--Default Cache configuration. These will applied to caches programmatically
|
12
|
created through the CacheManager. The following attributes are required for
|
13
|
defaultCache: maxInMemory - Sets the maximum number of objects that will
|
14
|
be created in memory eternal - Sets whether elements are eternal. If eternal,
|
15
|
timeouts are ignored and the element is never expired. timeToIdleSeconds
|
16
|
- Sets the time to idle for an element before it expires. i.e. The maximum
|
17
|
amount of time between accesses before an element expires Is only used if
|
18
|
the element is not eternal. Optional attribute. A value of 0 means that an
|
19
|
Element can idle for infinity timeToLiveSeconds - Sets the time to live for
|
20
|
an element before it expires. i.e. The maximum time between creation time
|
21
|
and when an element expires. Is only used if the element is not eternal.
|
22
|
overflowToDisk - Sets whether elements can overflow to disk when the in-memory
|
23
|
cache has reached the maxInMemory limit. -->
|
24
|
|
25
|
<!-- <defaultCache maxElementsInMemory="1000" overflowToDisk="true" -->
|
26
|
<!-- eternal="true" diskPersistent="false" timeToIdleSeconds="0" -->
|
27
|
<!-- timeToLiveSeconds="0" memoryStoreEvictionPolicy="LRU" -->
|
28
|
<!-- diskExpiryThreadIntervalSeconds="120" diskSpoolBufferSizeMB="5" /> -->
|
29
|
|
30
|
|
31
|
<cache name="unaryFunctions" maxElementsInMemory="5" eternal="false"
|
32
|
timeToIdleSeconds="500" timeToLiveSeconds="500" overflowToDisk="false"/>
|
33
|
|
34
|
<cache name="oaiDB" maxElementsInMemory="1" eternal="false"
|
35
|
timeToIdleSeconds="1800" timeToLiveSeconds="1800" overflowToDisk="false"/>
|
36
|
|
37
|
<!-- <cache name="publisherfields" maxElementsInMemory="30" eternal="false" -->
|
38
|
<!-- timeToIdleSeconds="1800" timeToLiveSeconds="1800" overflowToDisk="false" /> -->
|
39
|
|
40
|
<!-- <cache name="publisheridscheme" maxElementsInMemory="1" eternal="false" -->
|
41
|
<!-- timeToIdleSeconds="1800" timeToLiveSeconds="1800" overflowToDisk="false" /> -->
|
42
|
|
43
|
<!-- <cache name="publisheridnamespace" maxElementsInMemory="1" -->
|
44
|
<!-- eternal="false" timeToIdleSeconds="1800" timeToLiveSeconds="1800" -->
|
45
|
<!-- overflowToDisk="false" /> -->
|
46
|
|
47
|
|
48
|
</ehcache>
|
49
|
|