Files
RuoYi/ruoyi-admin/src/main/resources/ehcache/ehcache-shiro.xml

38 lines
1.0 KiB
XML
Raw Normal View History

2018-07-09 08:44:52 +08:00
<?xml version="1.0" encoding="UTF-8"?>
2018-12-17 22:32:37 +08:00
<ehcache name="ruoyi" updateCheck="false">
2018-07-09 08:44:52 +08:00
<!-- 磁盘缓存位置 -->
<diskStore path="java.io.tmpdir"/>
<!-- 默认缓存 -->
<defaultCache
maxEntriesLocalHeap="1000"
eternal="false"
timeToIdleSeconds="3600"
timeToLiveSeconds="3600"
overflowToDisk="false">
</defaultCache>
<!-- 登录记录缓存 锁定10分钟 -->
<cache name="loginRecordCache"
maxEntriesLocalHeap="2000"
eternal="false"
timeToIdleSeconds="600"
timeToLiveSeconds="0"
overflowToDisk="false"
statistics="true">
</cache>
<!-- 系统活跃用户缓存 -->
<cache name="sys-userCache"
maxEntriesLocalHeap="10000"
overflowToDisk="false"
eternal="false"
diskPersistent="false"
timeToLiveSeconds="0"
timeToIdleSeconds="0"
statistics="true">
</cache>
2018-07-09 08:44:52 +08:00
</ehcache>