关于 ehcache-1.6.0

坚持住521 2014-07-18 02:54:47
以下为系统中配置的缓存文件(ehcache.xml),不知道是什么原理,系统总是有问题,怀疑是缓存配置的问题,是分布式缓存吗?有什么地方需要改进的吗?求大神们帮忙啊!
<?xml version="1.0" encoding="GBK"?>
<ehcache>
<cacheManagerPeerProviderFactory
class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
properties="peerDiscovery=automatic,multicastGroupAddress=230.23.7.31,
multicastGroupPort=42250,timeToLive=0"
propertySeparator="," />
<cacheManagerPeerListenerFactory
class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory" />

<defaultCache maxElementsInMemory="10000" eternal="false"
timeToIdleSeconds="120" timeToLiveSeconds="120" overflowToDisk="false"
diskSpoolBufferSizeMB="30" maxElementsOnDisk="10000000"
diskPersistent="false" diskExpiryThreadIntervalSeconds="120"
memoryStoreEvictionPolicy="LRU" />

<!-- 配置ecache -->
<cache name="myEhcache" maxElementsInMemory="1000"
eternal="false" timeToIdleSeconds="7200" timeToLiveSeconds="7200"
overflowToDisk="false" memoryStoreEvictionPolicy="LRU">
<cacheEventListenerFactory
class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
properties="replicateAsynchronously=false,replicatePuts=true,
replicatePutsViaCopy=true,replicateUpdates=true,
replicateUpdatesViaCopy=true,replicateRemovals=true" />
</cache>
</ehcache>
...全文
206 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

81,094

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧