ehcache-shiro.xml 708 B

123456789101112131415161718192021222324252627
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ehcache name="ruoyi">
  3. <!-- 磁盘缓存位置 -->
  4. <diskStore path="java.io.tmpdir"/>
  5. <!-- 默认缓存 -->
  6. <defaultCache
  7. maxEntriesLocalHeap="1000"
  8. eternal="false"
  9. timeToIdleSeconds="3600"
  10. timeToLiveSeconds="3600"
  11. overflowToDisk="false">
  12. </defaultCache>
  13. <!-- 登录记录缓存 锁定10分钟 -->
  14. <cache name="loginRecordCache"
  15. maxEntriesLocalHeap="2000"
  16. eternal="false"
  17. timeToIdleSeconds="600"
  18. timeToLiveSeconds="0"
  19. overflowToDisk="false"
  20. statistics="true">
  21. </cache>
  22. </ehcache>