关于 ehcache-1.6.0
以下为系统中配置的缓存文件(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>