ehcache 怎么用,谁有例子发一个。
网上搜的那个不好使,怎么用啊?谁有发一个。
QQ:154929380
------解决方案--------------------给你我的ehcache.xml
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="ehcache.xsd">
<diskStore path="D:/eclipse3/workspace/ebid/cache/ehcache"/>
<cacheManagerEventListenerFactory class="" properties=""/>
<cacheManagerPeerProviderFactory
class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
properties="peerDiscovery=automatic,
multicastGroupAddress=230.0.0.1,
multicastGroupPort=4446, timeToLive=1"
propertySeparator=","
/>
<cacheManagerPeerListenerFactory
class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory"/>
<defaultCache
maxElementsInMemory="10"
eternal="false"
timeToIdleSeconds="3"
timeToLiveSeconds="3"
overflowToDisk="false"
diskSpoolBufferSizeMB="10"
maxElementsOnDisk="100"
diskPersistent="false"
diskExpiryThreadIntervalSeconds="60"
memoryStoreEvictionPolicy="LRU"
/>
<cache name="globalMethodCache"
maxElementsInMemory="10"
eternal="false"
timeToIdleSeconds="3"
timeToLiveSeconds="3"
overflowToDisk="false"
diskSpoolBufferSizeMB="10"
maxElementsOnDisk="100"
diskPersistent="false"
diskExpiryThreadIntervalSeconds="60"
memoryStoreEvictionPolicy="LRU"
/>
</ehcache>
------解决方案--------------------http://ehcache.org/documentation/