ehcache.xml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ehcache name="learncache" updateCheck="false">
  3. <!-- 磁盘缓存位置 -->
  4. <diskStore path="java.io.tmpdir"/>
  5. <!--默认缓存 单位:秒-->
  6. <defaultCache
  7. maxElementsInMemory="1000"
  8. eternal="false"
  9. timeToIdleSeconds="120"
  10. timeToLiveSeconds="120"
  11. maxElementsOnDisk="10000000"
  12. diskExpiryThreadIntervalSeconds="120"
  13. memoryStoreEvictionPolicy="LRU">
  14. <persistence strategy="localTempSwap"/>
  15. </defaultCache>
  16. <!--首页报表缓存设置 单位:秒-->
  17. <cache name="exhibition"
  18. maxElementsInMemory="1000"
  19. eternal="false"
  20. timeToIdleSeconds="120"
  21. timeToLiveSeconds="120"
  22. maxElementsOnDisk="10000000"
  23. diskExpiryThreadIntervalSeconds="120"
  24. memoryStoreEvictionPolicy="LRU">
  25. <persistence strategy="localTempSwap"/>
  26. </cache>
  27. <cache name="group"
  28. maxElementsInMemory="1000"
  29. eternal="false"
  30. timeToIdleSeconds="120"
  31. timeToLiveSeconds="120"
  32. maxElementsOnDisk="10000000"
  33. diskExpiryThreadIntervalSeconds="120"
  34. memoryStoreEvictionPolicy="LRU">
  35. <persistence strategy="localTempSwap"/>
  36. </cache>
  37. </ehcache>