I have already ehcache2 enables as second level cache for hibernate where i
have the corresponding rules for shiro. Below is my ehcache.xml

<?xml version="1.0" ?>
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
updateCheck="true" monitoring="autodetect" dynamicConfig="true"
         xsi:noNamespaceSchemaLocation="ehcache.xsd" name="ehcache2"
maxBytesLocalHeap="100M" maxBytesLocalDisk="1G">

    <diskStore path="java.io.tmpdir/ehchache"/>

    <defaultCache
            eternal="false"
            timeToLiveSeconds="600"
            timeToIdleSeconds="300"
            overflowToDisk="false"
            memoryStoreEvictionPolicy="LFU"
    />


    <cache name="EntityCache"
           eternal="false"
           overflowToDisk="false"
           timeToLiveSeconds="600"
           timeToIdleSeconds="300"
    />

    <cache name="org.hibernate.cache.UpdateTimestampsCache"
           eternal="true">
        <persistence strategy="localTempSwap"/>
    </cache>

    <cache name="org.hibernate.cache.internal.StandardQueryCache"
           eternal="false"
           timeToLiveSeconds="600"
           timeToIdleSeconds="300"
           overflowToDisk="false"
           memoryStoreEvictionPolicy="LFU"
    />

    <cache name="CollectionsCache"
           eternal="false"
           timeToLiveSeconds="600"
           timeToIdleSeconds="300"
           overflowToDisk="false"
           memoryStoreEvictionPolicy="LFU"
    />

    <cache name="shiro-activeSessionCache"
           overflowToDisk="true"
           eternal="true"
           timeToLiveSeconds="0"
           timeToIdleSeconds="0"
           diskPersistent="true"
           diskExpiryThreadIntervalSeconds="600"
    />


</ehcache>



--
Sent from: http://shiro-user.582556.n2.nabble.com/

Reply via email to