首页 > 系统服务 > 详细

Ehcache.xml 配置说明

时间:2017-02-14 15:02:05      阅读:202      评论:0      收藏:0      [点我收藏+]

一、配置样例

<?xml version="1.0" encoding="UTF-8"?>
<ehcache>
    <diskStore path="d:/ehcache/"></diskStore>
    
    <!-- 默认缓存配置 -->
    <defaultCache
        maxElementsInMemory="10000"
        eternal="false"
        timeToIdleSeconds="120"
        timeToLiveSeconds="120"
        overflowToDisk="true"
    />
    
    <!-- 特定缓存配置 -->
    <cache 
        name="com.zbaccp.entity.Person" 
        maxElementsInMemory="10000" 
        eternal="false"
        timeToIdleSeconds="300" 
        timeToLiveSeconds="600" 
        overflowToDisk="true" 
    />

</ehcache>

 

Ehcache.xml 配置说明

原文:http://www.cnblogs.com/MIC2016/p/6397227.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!