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 for defaultCache:
20
maxInMemory - 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 element
23
timeToIdleSeconds - Sets the time to idle for an element before it expires. Is only used
24
if the element is not eternal. Idle time is now - last accessed time
25
timeToLiveSeconds - Sets the time to live for an element before it expires. Is only used
26
if the element is not eternal. TTL is now - creation time
27
overflowToDisk - Sets whether elements can overflow to disk when the in-memory cache
28
has reached the maxInMemory limit.
32
maxElementsInMemory="10000"
34
timeToIdleSeconds="120"
35
timeToLiveSeconds="120"
39
<!--Predefined caches. Add your cache configuration settings here.
40
If you do not have a configuration for your cache a WARNING will be issued when the
43
The following attributes are required for defaultCache:
45
name - Sets the name of the cache. This is used to identify the cache. It must be unique.
46
maxInMemory - Sets the maximum number of objects that will be created in memory
47
eternal - Sets whether elements are eternal. If eternal, timeouts are ignored and the element
49
timeToIdleSeconds - Sets the time to idle for an element before it expires. Is only used
50
if the element is not eternal. Idle time is now - last accessed time
51
timeToLiveSeconds - Sets the time to live for an element before it expires. Is only used
52
if the element is not eternal. TTL is now - creation time
53
overflowToDisk - Sets whether elements can overflow to disk when the in-memory cache
54
has reached the maxInMemory limit.
58
<!-- Sample cache named sampleCache1
59
This cache contains a maximum in memory of 10000 elements, and will expire
60
an element if it is idle for more than 5 minutes and lives for more than
63
If there are more than 10000 elements it will overflow to the
64
disk cache, which in this configuration will go to wherever java.io.tmp is
65
defined on your system. On a standard Linux system this will be /tmp"
67
<cache name="sampleCache1"
68
maxElementsInMemory="10000"
70
timeToIdleSeconds="300"
71
timeToLiveSeconds="600"
75
<!-- Sample cache named sampleCache2
76
This cache contains 1000 elements. Elements will always be held in memory.
77
They are not expired. -->
78
<cache name="sampleCache2"
79
maxElementsInMemory="1000"
83
overflowToDisk="false"
86
<!-- Place configuration for your caches following -->