All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.config-template.example.files.ehcache.xml Maven / Gradle / Ivy

There is a newer version: 2.7.5-RELEASE
Show newest version
<ehcache>
    <!--
    磁盘存储:将缓存中暂时不使用的对象,转移到硬盘,类似于Windows系统的虚拟内存
    path:指定在硬盘上存储对象的路径
    -->
    <diskStore path="java.io.tmpdir"/>

    <!--
    defaultCache:默认的缓存配置信息,如果不加特殊说明,则所有对象按照此配置项处理
    maxElementsInMemory:设置了缓存的上限,最多存储多少个记录对象
    eternal:代表对象是否永不过期
    timeToIdleSeconds:最大的发呆时间
    timeToLiveSeconds:最大的存活时间
    overflowToDisk:是否允许对象被写入到磁盘
    -->
    <defaultCache maxElementsInMemory="10000"
                  eternal="false"
                  timeToIdleSeconds="120"
                  timeToLiveSeconds="120"
                  overflowToDisk="true"/>
</ehcache>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy