`

缓存配置ehcache.xml 记录

阅读更多
ehcache简介:
http://blog.csdn.net/mgoann/archive/2009/04/17/4087714.aspx
http://www.wzpxw.net/article/10838-EHCache%E8%AF%A6%E7%BB%86%E4%BD%BF%E7%94%A8%E4%BB%8B%E7%BB%8D
hibernate二级缓存:
http://blogger.org.cn/blog/more.asp?name=toyboysli&id=26506
http://hi.baidu.com/sleepymole/blog/item/9eafcbc4902859cb38db49d0.html
http://developer.51cto.com/art/200801/63576.htm

spring aop配置缓存
http://blog.csdn.net/soleghost/archive/2006/03/27/640562.aspx
·           name:Cache的唯一标识

·           maxElementsInMemory:内存中最大缓存对象数。

·           maxElementsOnDisk:磁盘中最大缓存对象数,若是0表示无穷大。

·           eternal:Element是否永久有效,一但设置了,timeout将不起作用。

·           overflowToDisk:配置此属性,当内存中Element数量达到maxElementsInMemory时,Ehcache将会Element写到磁盘中。

·           timeToIdleSeconds:设置Element在失效前的允许闲置时间。仅当element不是永久有效时使用,可选属性,默认值是0,也就是可闲置时间无穷大。

·           timeToLiveSeconds:设置Element在失效前允许存活时间。最大时间介于创建时间和失效时间之间。仅当element不是永久有效时使用,默认是0.,也就是element存活时间无穷大。

·           diskPersistent:是否缓存虚拟机重启期数据。(这个虚拟机是指什么虚拟机一直没看明白是什么,有高人还希望能指点一二)。

·           diskExpiryThreadIntervalSeconds:磁盘失效线程运行时间间隔,默认是120秒。

·           diskSpoolBufferSizeMB:这个参数设置DiskStore(磁盘缓存)的缓存区大小。默认是30MB。每个Cache都应该有自己的一个缓冲区。

·           memoryStoreEvictionPolicy:当达到maxElementsInMemory限制时,Ehcache将会根据指定的策略去清理内存。默认策略是LRU(最近最少使用)。你可以设置为FIFO(先进先出)或是LFU(较少使用)。


本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/mgoann/archive/2009/04/17/4087714.aspx
分享到:
评论

相关推荐

    ehcache的配置参数详解

    hibernate ehcache.xml 配置详解

    shiro-ehcache.xml

    在maven项目中,此shiro-ehcache.xml配置文件放在resources下,在applicationContext.xml中,用于shiro缓存管理器所配置,然后给shiro安全管理器配置此缓存管理器

    ehcache.xml

    hibernate 设置 二级缓存 配置文件

    借助Ehcache缓存框架实现对页面的缓存Demo

    1、ehcache.xml和ehcache.xsd两个文件可以在下在下载下来的名为“ehcache-core-x.x.x-distribution.tar.gz”压缩文件中找到 2、由于要实现Ehcache缓存页面,所以必须要添加“ehcache-web-2.0.4.jar” jar包,该jar包...

    mybatis ehcache 1.0 ehcache.xsd 提示文件

    mybatis 第三方二级缓存,ehcache 配置文件的 约束文件 ehcache.xsd !!

    springboot 整合ehcache+redis 通过配置文件切换缓存类型

    ehcache :添加依赖 pom.xml 2、添加配置文件ehcache.xml 3、添加注解@EnableCaching @Cacheable 4、插入缓存 5 读取缓存 6 设置缓存过期时间ehcache.xml -->timeToLiveSeconds。 redis : 1、添加依赖 pom.xml 2、...

    ehcache-2.10.5.zip

    ehcache.xml 和 ehcache.xsd 版本是 ...在ehcache.xml 与 ehcache.xsd 放在同一目录下 配置如下 <ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ehcache.xsd">

    ehcahe页面缓存详细内容

    2.将ehcache.xml放入能加载到classpath中的任意包中,不能放入WEB-INF中(其详细配置参数代表含义已经注释) 3.在工程中web.xml配置过滤器 <filter-name>SimplePageCachingFilter <filter-class>...

    ehcache-failsafe.xml

    ehcache的缓存配置文件

    springboot整合ehcache 设置缓存过期时间 简单示例

    springboot 整合 ehcache 简单示例 1、添加依赖 pom.xml 2、添加配置文件ehcache.xml 3、添加注解@EnableCaching @Cacheable 4、插入缓存 5 读取缓存 6 设置缓存过期时间ehcache.xml -->timeToLiveSeconds。

    java缓存详解[借鉴].pdf

    4. EhCache 需要在项目中正确配置和实现,包括在 Hibernate.cfg.xml 文件中配置缓存提供者和在 bean 的 hbm.xml 文件中配置缓存使用。 在使用 EhCache 时,需要在项目中添加 ehcache.xml 文件,并在 Hibernate.cfg....

    Ehcache缓存配置

    详细描述了Ehcache缓存配置,本文将会对ehcache.xml配置文件进行详细的阐述。

    ehcache监控工具ehcache-monitor-kit-1.0.3

    将以下配置copy的ehcache.xml文件的ehcache标签中,注:上述链接中说的配置少写了个probe包名。 <cacheManagerPeerListenerFactory class="org.terracotta.ehcachedx.monitor.probe.ProbePeerListenerFactory" ...

    jfinal缓存demo 及jar包

    final缓存机制,所需jar包,配置文件ehcache.xsd,ehcache.xml.

    维护手册模板.doc

    ehcache.xml 文件是 Ehcache 的配置文件,用于缓存数据。 3.3 globalMessages.properties globalMessages.properties 文件是国际化配置文件,用于存储多语言信息。 3.4 logback.xml logback.xml 文件是日志配置...

    Ehcache使用

    默认的配置文件为ehcache.xml文件,也可以使用不同的配置: CacheManager manager = new CacheManager("src/config/other.xml"); 缓存的创建,采用自动的方式 CacheManager singletonManager = CacheManager....

    ehcache 缓存

    <?xml version="1.0" encoding="UTF-8"?> <ehcache>  <diskStore path="java.io.tmpdir"/>    maxElementsInMemory="10000" !-- 缓存最大数目 -->  eternal="false" !-- 缓存是否持久 -->  ...

    spring+shiro+ehcache例子

    在web.xml中配置log4j信息打印 (需要自己将log4j的配置文件给打开) 三: 配置文件 查看/src/config/ ,配置文件可观察文件名称理解 四: 登录名为2:可以进行权限的验证,以及shiro的缓存。 登录名为任意...

    J2Cache两级缓存框架-其他

    ehcache.xml Ehcache的配置文件,配置说明请参考Ehcache文档 ehcache3.xml Ehcache3的配置文件,配置说明请参考Ehcache文档 network.xml JGroups网络配置,如果使用JGroups组播的话需要这个文件,一般无需修改 实际...

    Spring+MyBatis/Hibernate+Ehcache+Maven的Demo Web项目(稳定版)

    3.Ehcache方法缓存及页面缓存。见applicationContext-cache.xml及web.xml的pageEhCacheFilter 4.MyBatis+Maven代码生成工具。见bin目录 5.作为项目或者技术研究的基础架构。必要的jar包依赖都已配置好,基本都采用较...

Global site tag (gtag.js) - Google Analytics