ehcacheconfig.xml 2.2 KB

12345678910111213141516171819202122232425262728293031
  1. <ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:noNamespaceSchemaLocation="ehcache.xsd">
  3. <diskStore path="java.io.tmpdir"/>
  4. <cacheManagerPeerProviderFactory class="net.sf.ehcache.distribution.jgroups.JGroupsCacheManagerPeerProviderFactory"
  5. properties="connect=UDP(mcast_addr=231.12.21.132;mcast_port=45556;ip_ttl=32;
  6. mcast_send_buf_size=150000;mcast_recv_buf_size=80000):
  7. PING(timeout=2000;num_initial_members=6):
  8. MERGE2(min_interval=5000;max_interval=10000):
  9. FD_SOCK:VERIFY_SUSPECT(timeout=1500):
  10. pbcast.NAKACK(gc_lag=10;retransmit_timeout=3000):
  11. UNICAST(timeout=5000):
  12. pbcast.STABLE(desired_avg_gossip=20000):
  13. FRAG:
  14. pbcast.GMS(join_timeout=5000;join_retry_timeout=2000;shun=false;print_local_addr=false)"
  15. propertySeparator="::"
  16. />
  17. <cacheManagerEventListenerFactory class="com.kingdee.bos.framework.cache.service.ehcache.jgroups.JGroupsCacheManagerEventListenerFactory"
  18. properties="connect=UDP(mcast_addr=231.12.21.132;mcast_port=45556;ip_ttl=32;mcast_send_buf_size=150000;mcast_recv_buf_size=80000):PING(timeout=2000;num_initial_members=6):MERGE2(min_interval=5000;max_interval=10000):FD_SOCK:VERIFY_SUSPECT(timeout=1500):pbcast.NAKACK(gc_lag=10;retransmit_timeout=3000):UNICAST(timeout=5000):pbcast.STABLE(desired_avg_gossip=20000):FRAG:pbcast.GMS(join_timeout=5000;join_retry_timeout=2000;shun=false;print_local_addr=false)"/>
  19. <defaultCache
  20. maxElementsInMemory="10000"
  21. eternal="false"
  22. timeToIdleSeconds="120"
  23. timeToLiveSeconds="120"
  24. overflowToDisk="false"
  25. diskSpoolBufferSizeMB="30"
  26. maxElementsOnDisk="0"
  27. diskPersistent="false"
  28. diskExpiryThreadIntervalSeconds="120"
  29. memoryStoreEvictionPolicy="LRU"
  30. />
  31. </ehcache>