hibernate二级缓存配置模板
来源:互联网 发布:一致性哈希算法实现 编辑:程序博客网 时间:2024/05/24 06:35
ehcache.xml:
<?xml version=”1.0″ encoding=”UTF-8″?>
<!–
defaultCache节点为缺省的缓存策略
maxElementsInMemory 内存中最大允许存在的对象数量
eternal 设置缓存中的对象是否永远不过期
overflowToDisk 把溢出的对象存放到硬盘上
timeToIdleSeconds 指定缓存对象空闲多长时间就过期,过期的对象会被清除掉
timeToLiveSeconds 指定缓存对象总的存活时间
diskPersistent 当jvm结束是是否持久化对象
diskExpiryThreadIntervalSeconds 指定专门用于清除过期对象的监听线程的轮询时间
–>
<ehcache>
<diskStore path=”D:\cache”/>
<defaultCache maxElementsInMemory=”1000″ eternal=”false” overflowToDisk=”true”
timeToIdleSeconds=”120″
timeToLiveSeconds=”180″
diskPersistent=”false”
diskExpiryThreadIntervalSeconds=”60″/>
<cache name=”cn.itcast.bean.Person” maxElementsInMemory=”100″ eternal=”false”
overflowToDisk=”true” timeToIdleSeconds=”300″ timeToLiveSeconds=”600″ diskPersistent=”false”/>
</ehcache>
xxx.hbm.xml:
<cache usage=”read-write” region=”xxx.xxx.xxx.xxx”/>
<?xml version=”1.0″ encoding=”UTF-8″?>
<!–
defaultCache节点为缺省的缓存策略
maxElementsInMemory 内存中最大允许存在的对象数量
eternal 设置缓存中的对象是否永远不过期
overflowToDisk 把溢出的对象存放到硬盘上
timeToIdleSeconds 指定缓存对象空闲多长时间就过期,过期的对象会被清除掉
timeToLiveSeconds 指定缓存对象总的存活时间
diskPersistent 当jvm结束是是否持久化对象
diskExpiryThreadIntervalSeconds 指定专门用于清除过期对象的监听线程的轮询时间
–>
<ehcache>
<diskStore path=”D:\cache”/>
<defaultCache maxElementsInMemory=”1000″ eternal=”false” overflowToDisk=”true”
timeToIdleSeconds=”120″
timeToLiveSeconds=”180″
diskPersistent=”false”
diskExpiryThreadIntervalSeconds=”60″/>
<cache name=”cn.itcast.bean.Person” maxElementsInMemory=”100″ eternal=”false”
overflowToDisk=”true” timeToIdleSeconds=”300″ timeToLiveSeconds=”600″ diskPersistent=”false”/>
</ehcache>
xxx.hbm.xml:
<cache usage=”read-write” region=”xxx.xxx.xxx.xxx”/>
- hibernate二级缓存配置模板
- hibernate二级缓存的配置
- Hibernate+ehcache二级缓存配置
- hibernate二级缓存的配置
- Hibernate ehcache配置二级缓存
- hibernate二级缓存配置
- hibernate二级缓存配置
- hibernate二级缓存配置
- hibernate如何配置二级缓存
- 配置Hibernate二级缓存--echcache
- hibernate二级缓存配置
- Hibernate配置Ehcache二级缓存
- hibernate 二级缓存配置过程
- Hibernate二级缓存配置
- hibernate的二级缓存配置
- Hibernate二级缓存配置
- hibernate二级缓存配置
- hibernate 二级缓存配置
- 内存中结构体字节对齐
- tomacat启动分析
- 图片不刷新换图,只需把鼠标放在上边
- .NET内存中存在泄漏吗
- 向DataGridView中插入行时出现的错误
- hibernate二级缓存配置模板
- Lib3DS教程
- js仿数据库的添加与删除
- 在DataGridView控件中加入ComboBox下拉列表框的实现
- NoSQL代表: Mongo DB(芒果数据库)
- 【每日面试题】链表相关问题2
- Python学习题
- 又是为了触屏移动设备而设计
- AC自动机