<?xml version="1.0" encoding="UTF-8"?>

<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="../../main/config/ehcache.xsd">

    <!-- Disable for test ehcache.xml. Should go to the same place. -->
    <diskStore path="user.dir/target/diskStore/ehcache"/>

    <cacheManagerPeerProviderFactory class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
                                     properties="peerDiscovery=automatic, multicastGroupAddress=230.0.0.1, multicastGroupPort=4446, timeToLive=0"/>


    <cacheManagerPeerListenerFactory class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory"
                                     properties="hostName=, port=, socketTimeoutMillis="/>


    <defaultCache
            maxElementsInMemory="10"
            eternal="false"
            timeToIdleSeconds="5"
            timeToLiveSeconds="10"
            overflowToDisk="true"
            />


    <!-- Sample cache named sampleCache1 -->
    <cache name="sampleCache1"
           maxElementsInMemory="10000"
           maxElementsOnDisk="1000"
           eternal="false"
           timeToIdleSeconds="360"
           timeToLiveSeconds="1000"
           overflowToDisk="false"
           memoryStoreEvictionPolicy="LRU">
    </cache>

    <!-- A cache with short idle and live expiries, suitable for tests -->
    <cache name="sampleIdlingExpiringCache"
           maxElementsInMemory="1"
           eternal="false"
           timeToIdleSeconds="2"
           timeToLiveSeconds="5"
           overflowToDisk="true"
           diskPersistent="true"
            />
</ehcache>
