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

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

    <!-- A basic clustered LFU cache -->
    <cache name="clustered-1"
           maxElementsInMemory="1000"
           memoryStoreEvictionPolicy="LFU">
           <terracotta/>
    </cache>

    <terracottaConfig>
        <tc-config>
            <servers>
                <server host="localhost" name="s1"/>
            </servers>
        </tc-config>
    </terracottaConfig>

</ehcache>