详解ehcache.xml文件中cache配置参数
来源:互联网 发布:网络播放器哪个牌子好 编辑:程序博客网 时间:2024/05/18 13:11
<defaultCache
maxElementsInMemory="10000"
//缓存中最大允许创建的对象数
eternal="false"
//缓存中对象是否为永久的,如果是,超时设置将被忽略,对象从不过期
timeToIdleSeconds="120"
//缓存数据钝化时间(设置对象在它过期之前的空闲时间)
timeToLiveSeconds="120"
//缓存数据的生存时间(设置对象在它过期之前的生存时间)
overflowToDisk="true"
//内存不足时,是否启用磁盘缓存
/>
<diskStore>表示当内存缓存中对象数量超过类设置内存缓存数量时,将缓存对象写到硬盘,path=”java.io.tmpdir”表示把数据写到这个目录下。Java.io.tmpdir目录在运行时会根据相对路径生成。
<defaultCache>表示设定缓存的默认数据过期策略。
<cache>表示设定用具体的命名缓存的数据过期策略。
name表示具体的缓存命名。
maxElementsInMemory表示cache中最大允许保存的对象数据量。
eternal表示cache中数据是否为常量。
timeToIdleSeconds表示缓存数据钝化时间
timeToLiveSeconds表示缓存数据的生命时间。
overflowToDisk表示内存不足时,是否启用磁盘缓存。
- 详解ehcache.xml文件中cache配置参数
- 详解ehcache.xml文件中cache配置参数
- 详解ehcache.xml文件中cache配置参数
- ehcache.xml文件中cache配置参数
- ehcache.xml文件配置详解
- Ehcache 中ehcache.xml 配置详解
- Ehcache 中ehcache.xml 配置详解和示例
- Ehcache 中ehcache.xml 配置详解和示例
- Ehcache 中ehcache.xml 配置详解和示例
- Ehcache 中ehcache.xml 配置详解和示例
- Ehcache 中ehcache.xml 配置详解和示例
- Ehcache 中ehcache.xml 配置详解和示例
- Ehcache 中ehcache.xml 配置详解和示例
- Ehcache 中ehcache.xml 配置详解和示例
- Ehcache 中ehcache.xml 配置详解和示例
- Ehcache 中ehcache.xml 配置详解和示例
- Ehcache 中ehcache.xml 配置详解和示例
- Ehcache配置参数详解
- STL_Algorithm6--find, find_if, sort, binary_search
- 游戏策划需要了解的网游数据结构
- 数据库中的事务
- 我的WCF之旅(7):面向服务架构(SOA)和面向对象编程(OOP)的结合——如何实现Service Contract的继承
- Red Hat Linux下安装JDK
- 详解ehcache.xml文件中cache配置参数
- android监控程序状态(安装 卸载)
- 大家好
- ab
- Understanding Throughput-Oriented Architectures
- SQLITE3 使用总结
- Linux操作系统Vmstat命令列出的属性详解 转载
- Google WIFI/IP定位技术初探
- Spring 使用Properties配置文件 (转载)