首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

ehcache 如何用,哪位高手有例子发一个

2012-01-22 
ehcache 怎么用,谁有例子发一个。网上搜的那个不好使,怎么用啊?谁有发一个。QQ:154929380[解决办法]给你我的

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/

热点排行