区分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"?> <?xml version="1.0" encoding="UTF-8"?>
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <ehcache>
xsi:noNamespaceSchemaLocation="http://ehcache.org/ehcache.xsd"> <diskStore path="java.io.tmpdir/zheng-cms-dao/ehcache"/>
<diskStore path="java.io.tmpdir"/>
<defaultCache <defaultCache
maxElementsInMemory="10000" maxElementsInMemory="10000"
eternal="false" eternal="false"

View File

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

View File

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