3 <!-- Sets the path to the directory where cache .data files are created.
5 If the path is a Java System Property it is replaced by
6 its value in the running VM.
8 The following properties are translated:
9 user.home - User's home directory
10 user.dir - User's current working directory
11 java.io.tmpdir - Default temp file path -->
12 <diskStore path="java.io.tmpdir"/>
15 <!--Default Cache configuration. These will applied to caches programmatically created through
18 The following attributes are required:
20 maxElementsInMemory - Sets the maximum number of objects that will be created in memory
21 eternal - Sets whether elements are eternal. If eternal, timeouts are ignored and the
22 element is never expired.
23 overflowToDisk - Sets whether elements can overflow to disk when the in-memory cache
24 has reached the maxInMemory limit.
26 The following attributes are optional:
27 timeToIdleSeconds - Sets the time to idle for an element before it expires.
28 i.e. The maximum amount of time between accesses before an element expires
29 Is only used if the element is not eternal.
30 Optional attribute. A value of 0 means that an Element can idle for infinity.
31 The default value is 0.
32 timeToLiveSeconds - Sets the time to live for an element before it expires.
33 i.e. The maximum time between creation time and when an element expires.
34 Is only used if the element is not eternal.
35 Optional attribute. A value of 0 means that and Element can live for infinity.
36 The default value is 0.
37 diskPersistent - Whether the disk store persists between restarts of the Virtual Machine.
38 The default value is false.
39 diskExpiryThreadIntervalSeconds- The number of seconds between runs of the disk expiry thread. The default value
44 maxElementsInMemory="10000"
46 overflowToDisk="false"
47 timeToIdleSeconds="120"
48 timeToLiveSeconds="120"
49 diskPersistent="false"
50 diskExpiryThreadIntervalSeconds="120"
55 maxElementsInMemory="10000"
57 overflowToDisk="false"
58 timeToIdleSeconds="120"
59 timeToLiveSeconds="120"
60 diskPersistent="false"
61 diskExpiryThreadIntervalSeconds="120"
66 maxElementsInMemory="1000"
68 overflowToDisk="false"
69 timeToIdleSeconds="120"
70 timeToLiveSeconds="120"
71 diskPersistent="false"
72 diskExpiryThreadIntervalSeconds="120"