区分ehcache路径

This commit is contained in:
shuzheng 2017-02-22 22:50:14 +08:00
parent 657aa90016
commit 301e6eda0e
3 changed files with 33 additions and 15 deletions

View File

@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ehcache.org/ehcache.xsd">
<diskStore path="java.io.tmpdir"/>
<ehcache>
<diskStore path="java.io.tmpdir/zheng-cms-dao/ehcache"/>
<defaultCache
maxElementsInMemory="10000"
eternal="false"

View File

@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ehcache.org/ehcache.xsd">
<diskStore path="java.io.tmpdir"/>
<ehcache>
<diskStore path="java.io.tmpdir/zheng-upms-dao/ehcache"/>
<defaultCache
maxElementsInMemory="10000"
eternal="false"

View File

@ -1,13 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ehcache.org/ehcache.xsd">
<diskStore path="java.io.tmpdir/shiro-ehcache"/>
<cache name="shiro-activeSessionCache"
maxEntriesLocalHeap="10000"
overflowToDisk="false"
<ehcache name="shirocache">
<diskStore path="java.io.tmpdir/zheng-upms-server/shiro-ehcache"/>
<cache name="authorizationCache"
maxEntriesLocalHeap="2000"
eternal="false"
diskPersistent="false"
timeToIdleSeconds="3600"
timeToLiveSeconds="0"
timeToIdleSeconds="0"
statistics="true"/>
overflowToDisk="false"
statistics="true">
</cache>
<cache name="authenticationCache"
maxEntriesLocalHeap="2000"
eternal="false"
timeToIdleSeconds="3600"
timeToLiveSeconds="0"
overflowToDisk="false"
statistics="true">
</cache>
<cache name="shiro-activeSessionCache"
maxEntriesLocalHeap="2000"
eternal="false"
timeToIdleSeconds="3600"
timeToLiveSeconds="0"
overflowToDisk="false"
statistics="true">
</cache>
</ehcache>