~intranda/goobi-production/intranda1.7

« back to all changes in this revision

Viewing changes to WEB-INF/classes/ehcache.xml

  • Committer: steffen.hankiewicz at intranda
  • Date: 2011-07-05 12:54:18 UTC
  • Revision ID: steffen.hankiewicz@intranda.com-20110705125418-te8hmvrm6lwwt074
classes deleted

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<ehcache>
2
 
 
3
 
    <!-- Sets the path to the directory where cache .data files are created.
4
 
 
5
 
         If the path is a Java System Property it is replaced by
6
 
         its value in the running VM.
7
 
 
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"/>
13
 
 
14
 
    <!--Default Cache configuration. These will applied to caches programmatically created through
15
 
        the CacheManager.
16
 
 
17
 
        The following attributes are required:
18
 
 
19
 
        maxElementsInMemory            - Sets the maximum number of objects that will be created in memory
20
 
        eternal                        - Sets whether elements are eternal. If eternal,  timeouts are ignored and the
21
 
                                         element is never expired.
22
 
        overflowToDisk                 - Sets whether elements can overflow to disk when the in-memory cache
23
 
                                         has reached the maxInMemory limit.
24
 
 
25
 
        The following attributes are optional:
26
 
        timeToIdleSeconds              - Sets the time to idle for an element before it expires.
27
 
                                         i.e. The maximum amount of time between accesses before an element expires
28
 
                                         Is only used if the element is not eternal.
29
 
                                         Optional attribute. A value of 0 means that an Element can idle for infinity.
30
 
                                         The default value is 0.
31
 
        timeToLiveSeconds              - Sets the time to live for an element before it expires.
32
 
                                         i.e. The maximum time between creation time and when an element expires.
33
 
                                         Is only used if the element is not eternal.
34
 
                                         Optional attribute. A value of 0 means that and Element can live for infinity.
35
 
                                         The default value is 0.
36
 
        diskPersistent                 - Whether the disk store persists between restarts of the Virtual Machine.
37
 
                                         The default value is false.
38
 
        diskExpiryThreadIntervalSeconds- The number of seconds between runs of the disk expiry thread. The default value
39
 
                                         is 120 seconds.
40
 
        -->
41
 
 
42
 
    <defaultCache
43
 
        maxElementsInMemory="10000"
44
 
        eternal="false"
45
 
        overflowToDisk="true"
46
 
        timeToIdleSeconds="120"
47
 
        timeToLiveSeconds="120"
48
 
        diskPersistent="false"
49
 
        diskExpiryThreadIntervalSeconds="120"
50
 
        />
51
 
</ehcache>