~ubuntu-branches/ubuntu/oneiric/ehcache/oneiric

« back to all changes in this revision

Viewing changes to src/test/resources/ehcache-disk.xml

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2010-06-23 10:35:31 UTC
  • mfrom: (1.1.5 upstream) (2.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100623103531-ra0qdpmotoz6ygct
Tags: 2.1.0-1
Merge changes from Thierry's PPA and upload to Debian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../main/config/ehcache.xsd">
 
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. Subdirectories can be specified below the property e.g. java.io.tmpdir/one
 
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/a/b/c"/>
 
13
 
 
14
 
 
15
    <!--Default Cache configuration. These will applied to caches programmatically created through
 
16
        the CacheManager.
 
17
 
 
18
        The following attributes are required:
 
19
 
 
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.
 
25
 
 
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
 
40
                                         is 120 seconds.
 
41
        -->
 
42
 
 
43
    <defaultCache
 
44
        maxElementsInMemory="10"
 
45
        eternal="false"
 
46
        timeToIdleSeconds="5"
 
47
        timeToLiveSeconds="10"
 
48
        overflowToDisk="true"
 
49
        />
 
50
 
 
51
    <cache name="persistentLongExpiryIntervalCache"
 
52
        maxElementsInMemory="500"
 
53
        maxElementsOnDisk="1000"
 
54
        eternal="false"
 
55
        timeToIdleSeconds="300"
 
56
        timeToLiveSeconds="600"
 
57
        overflowToDisk="true"
 
58
        diskPersistent="true"
 
59
        diskExpiryThreadIntervalSeconds="0"
 
60
        />
 
61
 
 
62
    <cache name="persistentLongExpiryIntervalNonOverflowCache"
 
63
        maxElementsInMemory="500"
 
64
        maxElementsOnDisk="1000"
 
65
        eternal="false"
 
66
        timeToIdleSeconds="300"
 
67
        timeToLiveSeconds="600"
 
68
        overflowToDisk="false"
 
69
        diskPersistent="true"
 
70
        diskExpiryThreadIntervalSeconds="0"
 
71
        />
 
72
 
 
73
 
 
74
 
 
75
</ehcache>