<?xml version="1.0" encoding="UTF-8"?>
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ehcache.org/ehcache.xsd"
updateCheck="false">
<diskStore path="java.io.tmpdir" />
<defaultCache eternal="false" overflowToDisk="false"
diskPersistent="false" timeToIdleSeconds="3600" timeToLiveSeconds="3600"
maxElementsInMemory="1000" memoryStoreEvictionPolicy="LFU" />
<cache name="baseCache" eternal="false" maxElementsInMemory="1000"
overflowToDisk="false" diskPersistent="false" timeToIdleSeconds="0"
statistics="true" timeToLiveSeconds="0" memoryStoreEvictionPolicy="LFU" />
<!-- eternal="false" // 元素是否永恒,如果是就永不过期(必须设置) maxElementsInMemory="1000"
// 缓存容量的内存最大值(必须设置) overflowToDisk="false" // 当缓存达到maxElementsInMemory值是,是否允许溢出到磁盘(必须设置)
diskPersistent="false" // 磁盘缓存在VM重新启动时是否保持(默认为false) timeToIdleSeconds="0"
// 导致元素过期的访问间隔(秒为单位). 0表示可以永远空闲,默认为0 timeToLiveSeconds="600" // 元素在缓存里存在的时间(秒为单位).
0 表示永远存在不过期 memoryStoreEvictionPolicy="LFU" // 当达到maxElementsInMemory时,如何强制进行驱逐默认使用"最近使用(LRU)"策略,其它还有先入先出FIFO,最少使用LFU,较少使用LRU -->
<!-- 用户缓存 -->
<cache name="userCache" eternal="false" maxElementsInMemory="1000"
timeToLiveSeconds="600" overflowToDisk="false" />
<!-- 用户个人设置缓存 -->
<cache name="userSettingsCache" eternal="false" maxElementsInMemory="1000"
timeToLiveSeconds="600" overflowToDisk="false" />
<!-- 用户角色缓存 -->
<cache name="rolesCache" eternal="false" maxElementsInMemory="1000"
timeToLiveSeconds="600" overflowToDisk="false" />
<!-- 用户权限缓存 -->
<cache name="permissionsCache" eternal="false" maxElementsInMemory="1000"
timeToLiveSeconds="600" overflowToDisk="false" />
<!-- 系统缓存 -->
<cache name="sysCache" eternal="false" maxElementsInMemory="1000"
timeToLiveSeconds="600" overflowToDisk="false" />
<!-- 工作流模块缓存 -->
<cache name="actCache" eternal="false" maxElementsInMemory="1000"
timeToLiveSeconds="600" overflowToDisk="false" />
<!-- 内容管理模块缓存 -->
<cache name="cmsCache" eternal="false" maxElementsInMemory="1000"
timeToLiveSeconds="600" overflowToDisk="false" />
</ehcache>