ehcache集群详解二(集群的最小配置)
2015-08-16 18:38
260 查看
下面是实现一个Ehcache集群的最小配置:
在缓存里添加下面的配置:
就像下面这个配置:
集群里的每个缓存节点都要有上面的配置。
<cacheManagerPeerProviderFactory class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory" properties="peerDiscovery=automatic, multicastGroupAddress=230.0.0.1, multicastGroupPort=4446"/> <cacheManagerPeerListenerFactory class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory"/>
在缓存里添加下面的配置:
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"/>
就像下面这个配置:
<cache name="sampleDistributedCache1" maxEntriesLocalHeap="10" eternal="false" timeToIdleSeconds="100" timeToLiveSeconds="100"> <cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"/> </cache>
集群里的每个缓存节点都要有上面的配置。
相关文章推荐
- [游戏资讯]《极品飞车16:亡命狂飙》配置需求公布
- 路由器备份配置
- batchcollect pagecollect来自官方杰奇jieqi定时采集配置方法参数详解第1/2页
- 路由器的基本配置
- 路由器基础配置及传输协议
- 经典配置 Vlan篇
- 备份线路的配置
- 交换机如何配置 新手配置交换机详细教程
- 如何进行系统配置
- 路由器的配置与调试
- DOS下内存的配置
- IIS配置文件隐患
- Windows下Postgresql数据库的下载与配置方法
- redis中修改配置文件中的端口号 密码方法
- Microsoft Office 2007 SP1 简体中文正式版 升级包官方下载地址
- 官方 WPS office 2005 个人精装版 下载
- 解析如何在sqlserver代理中配置邮件会话
- Enterprise Library for .NET Framework 2.0缓存使用实例
- PowerShell中编程清空IE缓存方法