详解ehcache.xml文件中cache配置参数
2004-12-26 22:41
615 查看
网上很多关于cache配置参数的解释不是很正确,现将其注释如下:
<defaultCache
maxElementsInMemory="10000"
//缓存中最大允许创建的对象数
eternal="false"
//缓存中对象是否为永久的,如果是,超时设置将被忽略,对象从不过期
timeToIdleSeconds="120"
//缓存数据钝化时间(设置对象在它过期之前的空闲时间)
timeToLiveSeconds="120"
//缓存数据的生存时间(设置对象在它过期之前的生存时间)
overflowToDisk="true"
//内存不足时,是否启用磁盘缓存
/>
<defaultCache
maxElementsInMemory="10000"
//缓存中最大允许创建的对象数
eternal="false"
//缓存中对象是否为永久的,如果是,超时设置将被忽略,对象从不过期
timeToIdleSeconds="120"
//缓存数据钝化时间(设置对象在它过期之前的空闲时间)
timeToLiveSeconds="120"
//缓存数据的生存时间(设置对象在它过期之前的生存时间)
overflowToDisk="true"
//内存不足时,是否启用磁盘缓存
/>
相关文章推荐
- 详解ehcache.xml文件中cache配置参数
- ehcache.xml文件中cache配置参数
- 配置文件ehcache.xml详解(2)— <diskStore>配置及相关
- JPA的配置文件persistence.xml参数详解
- JSF配置文件faces-config.xml参数详解
- JPA的配置文件persistence.xml参数详解
- JPA的配置文件persistence.xml参数详解
- 配置文件ehcache.xml详解(3)—<ehcache>
- JPA持久化persistence.xml配置文件即参数详解
- ehcache.xml配置文件详解
- JSF配置文件faces-config.xml参数详解
- ehcache.xml配置文件详解
- ehcache.xml配置文件详解
- ehcache框架配置文件各参数详解
- 配置文件ehcache.xml详解(1)—<Cache>
- 01_MyBatis EHCache集成及所需jar包,ehcache.xml配置文件参数配置及mapper中的参数配置
- JPA持久化persistence.xml配置文件及参数详解
- 01_MyBatis EHCache集成及所需jar包,ehcache.xml配置文件参数配置及mapper中的参数配置
- JSF配置文件faces-config.xml参数详解
- ehcache框架配置文件各参数详解