<?xml version="1.0" encoding="UTF-8"?>
|
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xsi:noNamespaceSchemaLocation="http://ehcache.org/ehcache.xsd">
|
|
<!--磁盘缓存的地址 -->
|
<diskStore path="java.io.tmpdir" />
|
<!-- <diskStore path="D:\test" /> -->
|
<!-- 默认缓存 -->
|
<defaultCache maxElementsInMemory="1000" eternal="false"
|
maxElementsOnDisk="10000" timeToIdleSeconds="120" timeToLiveSeconds="120"
|
overflowToDisk="true" />
|
|
<!-- 分类缓存 -->
|
<cache name="classCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="120"
|
timeToLiveSeconds="120" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
<!-- 今日热门 -->
|
<cache name="crgCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="1200"
|
timeToLiveSeconds="1200" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
<!-- 首页banner缓存 -->
|
<cache name="bannerCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="120"
|
timeToLiveSeconds="120" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
<!-- 首页版块缓存 -->
|
<cache name="supersectionCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="120"
|
timeToLiveSeconds="120" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
<!-- 首页专题缓存 -->
|
<cache name="specialCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="120"
|
timeToLiveSeconds="120" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
<!--版块商品缓存 -->
|
<cache name="sectionCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="120"
|
timeToLiveSeconds="120" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
<!-- 客户端参数缓存 -->
|
<cache name="clientParamCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="120"
|
timeToLiveSeconds="120" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
<!-- 系统参数缓存 -->
|
<cache name="sysCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="120"
|
timeToLiveSeconds="120" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
<!-- 页面全部缓存 -->
|
<cache name="SimplePageCachingFilter" maxElementsInMemory="10"
|
maxElementsOnDisk="10" eternal="false" overflowToDisk="true"
|
timeToIdleSeconds="240" timeToLiveSeconds="240"
|
memoryStoreEvictionPolicy="LFU">
|
</cache>
|
|
<cache name="maskKeyCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="180000"
|
timeToLiveSeconds="180000" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
<!-- 子系统缓存 -->
|
<cache name="childSystemCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="180000"
|
timeToLiveSeconds="180000" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
<!--三级商品缓存 -->
|
<cache name="goodsCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="600"
|
timeToLiveSeconds="600" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
<!-- 优惠商品缓存 -->
|
<cache name="taoBaoCouponCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="3600"
|
timeToLiveSeconds="3600" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
|
<cache name="config" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="18000"
|
timeToLiveSeconds="18000" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
|
<cache name="configCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="120"
|
timeToLiveSeconds="120" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
<cache name="homeBaoManage" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="18000"
|
timeToLiveSeconds="18000" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
<cache name="temai" maxElementsInMemory="1000" maxElementsOnDisk="10000"
|
eternal="false" timeToIdleSeconds="18000" timeToLiveSeconds="18000"
|
overflowToDisk="true" memoryStoreEvictionPolicy="LRU" />
|
|
<!-- 淘客缓存 -->
|
<cache name="taoKeCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="20"
|
timeToLiveSeconds="20" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
|
<!-- 动态缓存 -->
|
<cache name="activityCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="120"
|
timeToLiveSeconds="120" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
<!-- dos拦截 -->
|
<cache name="rsCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="120"
|
timeToLiveSeconds="120" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
<!-- 淘客推荐模块商品缓存 -->
|
<cache name="taoKeMaterialCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="120"
|
timeToLiveSeconds="120" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
<!-- 淘客物料搜索缓存 -->
|
<cache name="searchWuLiaoCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="120"
|
timeToLiveSeconds="120" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
<!-- 9.9/19.9/29.9/49.9模块商品缓存 -->
|
<cache name="quality9K9Cache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="120"
|
timeToLiveSeconds="120" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
<!-- 精选库商品查询缓存 -->
|
<cache name="qualityCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="120"
|
timeToLiveSeconds="120" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
<!-- 标签缓存 -->
|
<cache name="labelCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="120"
|
timeToLiveSeconds="120" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
<!-- 淘宝推荐物料id -->
|
<cache name="taobaoMeterialCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="120"
|
timeToLiveSeconds="120" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
<!-- 混合分类查询缓存 -->
|
<cache name="mergeClassCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="120"
|
timeToLiveSeconds="120" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
<!-- 混合分类查询缓存 -->
|
<cache name="helpCenterCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="120"
|
timeToLiveSeconds="120" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
<!-- 双11缓存 -->
|
<cache name="s11Cache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="120"
|
timeToLiveSeconds="120" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
<!-- 系统自定义券缓存 -->
|
<cache name="systemCouponCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="120"
|
timeToLiveSeconds="120" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
<!--品牌缓存 -->
|
<cache name="brandCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="120"
|
timeToLiveSeconds="120" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
|
<!-- 用户商品推荐仓库缓存 -->
|
<cache name="recommendLibraryCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="3600"
|
timeToLiveSeconds="3600" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
<cache name="recommendUserCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="600"
|
timeToLiveSeconds="600" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
|
<!--动态缓存 -->
|
<cache name="dynamicCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="120"
|
timeToLiveSeconds="120" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
<!-- 通用模板缓存 -->
|
<cache name="commonContentCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="1800"
|
timeToLiveSeconds="1800" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
<!-- 京东通用模板缓存 -->
|
<cache name="jdCommonContentCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="1800"
|
timeToLiveSeconds="1800" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
<!-- 拼多多通用模板缓存 -->
|
<cache name="pddCommonContentCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="1800"
|
timeToLiveSeconds="1800" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
<!-- 拼多多缓存 -->
|
|
<cache name="pddCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="5000" eternal="false" timeToIdleSeconds="3600"
|
timeToLiveSeconds="3600" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
<!-- 大淘客商品缓存(10分钟) -->
|
<cache name="daTaoKeGoodsCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="600"
|
timeToLiveSeconds="600" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
|
<!-- 京东专题缓存 -->
|
<cache name="jdSpecialCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="1800"
|
timeToLiveSeconds="1800" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
<!-- 拼多多专题缓存 -->
|
<cache name="pddSpecialCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="1800"
|
timeToLiveSeconds="1800" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
|
<!-- 京东缓存 -->
|
<cache name="jdCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="1800"
|
timeToLiveSeconds="1800" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
|
<!-- 金币获取缓存 -->
|
<cache name="integralGetCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="1800"
|
timeToLiveSeconds="1800" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
|
<!-- 红包缓存缓存 -->
|
<cache name="redpackCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="1800"
|
timeToLiveSeconds="1800" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
<!-- 会员缓存 -->
|
<cache name="vipconfigCache" maxElementsInMemory="1000"
|
maxElementsOnDisk="10000" eternal="false" timeToIdleSeconds="1800"
|
timeToLiveSeconds="1800" overflowToDisk="true"
|
memoryStoreEvictionPolicy="LRU" />
|
|
</ehcache>
|