Ehcache缓存的配置文件
来源:互联网 发布:百川考试软件怎么样 编辑:程序博客网 时间:2024/04/29 02:50
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../config/ehcache.xsd"> <diskStore path="C:/ehcache"/> <cache name="categoryCache" maxElementsInMemory="10000" eternal="false" timeToIdleSeconds="120" timeToLiveSeconds="120" overflowToDisk="true" maxElementsOnDisk="10000000" diskPersistent="false" diskExpiryThreadIntervalSeconds="120" memoryStoreEvictionPolicy="LRU" /> <!-- 默认缓存配置, 以下属性是必须的: name :cache的标识符,在一个CacheManager中必须唯一。 maxElementsInMemory : 在内存中缓存的element的最大数目。 maxElementsOnDisk : 在磁盘上缓存的element的最大数目。 eternal : 设定缓存的elements是否有有效期。如果为true,timeouts属性被忽略。 overflowToDisk : 设定当内存缓存溢出的时候是否将过期的element缓存到磁盘上。 以下属性是可选的: timeToIdleSeconds : 缓存element在过期前的空闲时间。 timeToLiveSeconds : 缓存element的有效生命期。 diskPersistent : 在VM重启的时候是否持久化磁盘缓存,默认是false。 diskExpiryThreadIntervalSeconds : 磁盘缓存的清理线程运行间隔,默认是120秒. memoryStoreEvictionPolicy : 当内存缓存达到最大,有新的element加入的时候, 移除缓存中element的策略。默认是LRU,可选的有LFU和FIFO --></ehcache>
阅读全文
0 0
- Ehcache缓存的配置文件
- ehcache.xml及结合shiro缓存的ehcache的配置文件
- mybatis的缓存配置--ehcache.xml(缓存配置文件)
- ehcache的配置文件
- ehcache的配置文件
- ehcache缓存的使用
- ehcache 缓存的使用
- Ehcache缓存的使用
- ehcache 缓存的使用
- ehcache缓存的使用
- EHCache缓存的配置
- Ehcache缓存的使用
- MyBatis--查询缓存--ehcache二级缓存配置文件详解
- 认识ehcache的配置文件: ehcache.xml
- Ehcache配置文件的详细说明
- Ehcache配置文件的详细说明
- Ehcache配置文件的详细说明
- Ehcache配置文件的详细说明
- ST7735学习
- LightOj-1029-Civil and Evil Engineer
- 软件之母—格蕾丝·霍波
- 干货!三步走带你搞定秋招面试!
- Unity网络游戏中的登录注册以及Web安全
- Ehcache缓存的配置文件
- Gym
- 模拟面试题目笔记-- 重定向和请求转发的区别 数据库的事物
- 对线程本地ThreadLocal的理解
- leetcode 343. Integer Break
- Gradient Boosting Machine(GBM)调参方法详解
- 安卓获取APP的信息以及整个硬件、系统信息
- [笔记]画三角函数-涵盖画图基础
- python 淘宝MM抓取