~ubuntu-branches/ubuntu/wily/libhibernate3-java/wily-proposed

« back to all changes in this revision

Viewing changes to test/org/hibernate/test/cache/ehcache/ehcache.xml

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2007-10-14 14:43:34 UTC
  • Revision ID: james.westby@ubuntu.com-20071014144334-eamc8i0q10gs1aro
Tags: upstream-3.2.5
ImportĀ upstreamĀ versionĀ 3.2.5

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
 
 
15
    <!--Default Cache configuration. These will applied to caches programmatically created through
 
16
        the CacheManager.
 
17
 
 
18
        The following attributes are required for defaultCache:
 
19
 
 
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
 
22
                            is never expired.
 
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.
 
29
 
 
30
        -->
 
31
    <defaultCache
 
32
        maxElementsInMemory="10000"
 
33
        eternal="false"
 
34
        timeToIdleSeconds="120"
 
35
        timeToLiveSeconds="120"
 
36
        overflowToDisk="true"
 
37
        />
 
38
 
 
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
 
41
        CacheManager starts
 
42
 
 
43
        The following attributes are required for defaultCache:
 
44
 
 
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
 
48
                            is never expired.
 
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.
 
55
 
 
56
        -->
 
57
 
 
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
 
61
        10 minutes.
 
62
 
 
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"
 
66
        -->
 
67
    <cache name="sampleCache1"
 
68
        maxElementsInMemory="10000"
 
69
        eternal="false"
 
70
        timeToIdleSeconds="300"
 
71
        timeToLiveSeconds="600"
 
72
        overflowToDisk="true"
 
73
        />
 
74
 
 
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"
 
80
        eternal="true"
 
81
        timeToIdleSeconds="0"
 
82
        timeToLiveSeconds="0"
 
83
        overflowToDisk="false"
 
84
        /> -->
 
85
 
 
86
    <!-- Place configuration for your caches following -->
 
87
 
 
88
</ehcache>