Advertisement
Guest User

Untitled

a guest
Mar 9th, 2011
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 5.39 KB | None | 0 0
  1. <ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ehcache.xsd">
  2.     <diskStore path="ehcache.disk.store.dir/liferay-multi-vm" />
  3.    
  4.     <cacheManagerPeerProviderFactory
  5.         class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
  6.         properties="peerDiscovery=automatic, multicastGroupAddress=230.0.0.1, multicastGroupPort=4447, timeToLive=255" />
  7.    
  8.     <!-- set port = 4000 + node number -->
  9.     <cacheManagerPeerListenerFactory
  10.         class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory"
  11.         properties="port=40003, socketTimeoutMillis=2000" />
  12.        
  13.     <defaultCache maxElementsInMemory="10000" eternal="false"
  14.         timeToIdleSeconds="100" timeToLiveSeconds="100" overflowToDisk="true">
  15.         <cacheEventListenerFactory
  16.             class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
  17.             properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true " />
  18.         <bootstrapCacheLoaderFactory
  19.             class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory" />
  20.     </defaultCache>
  21.    
  22.     <cache
  23.         name="com.liferay.portal.kernel.dao.orm.EntityCache"
  24.         maxElementsInMemory="10000"
  25.         eternal="false"
  26.        timeToIdleSeconds="100"
  27.         overflowToDisk="true"
  28.     >
  29.         <cacheEventListenerFactory
  30.             class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
  31.             properties="replicatePuts=false,replicateUpdatesViaCopy=false"
  32.             propertySeparator=","
  33.         />
  34.         <bootstrapCacheLoaderFactory class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory" />
  35.     </cache>
  36.     <cache
  37.         name="com.liferay.portal.kernel.dao.orm.FinderCache"
  38.         maxElementsInMemory="10000"
  39.         eternal="false"
  40.        timeToIdleSeconds="100"
  41.         overflowToDisk="true"
  42.     >
  43.         <cacheEventListenerFactory
  44.             class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
  45.             properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true, asynchronousReplicationIntervalMillis=1000" />
  46.         <bootstrapCacheLoaderFactory
  47.             class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
  48.             properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000" />
  49.     </cache>
  50.     <cache
  51.         name="com.liferay.portal.security.permission.PermissionCacheUtil"
  52.         maxElementsInMemory="10000"
  53.         eternal="false"
  54.        timeToIdleSeconds="100"
  55.         overflowToDisk="true"
  56.     >
  57.        <cacheEventListenerFactory
  58.             class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
  59.             properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true, asynchronousReplicationIntervalMillis=1000" />
  60.         <bootstrapCacheLoaderFactory
  61.             class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
  62.             properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000" />
  63.     </cache>
  64.     <cache
  65.         name="com.liferay.portal.service.impl.PortletPreferencesLocalUtil"
  66.         maxElementsInMemory="10000"
  67.         eternal="false"
  68.        timeToIdleSeconds="100"
  69.         overflowToDisk="true"
  70.     >
  71.         <cacheEventListenerFactory
  72.             class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
  73.             properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true, asynchronousReplicationIntervalMillis=1000" />
  74.         <bootstrapCacheLoaderFactory
  75.             class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
  76.             properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000" />
  77.     </cache>
  78.     <cache
  79.         name="com.liferay.portal.servlet.filters.cache.CacheUtil"
  80.         maxElementsInMemory="1000"
  81.         eternal="false"
  82.         timeToLiveSeconds="100"
  83.         overflowToDisk="true"
  84.     >
  85.         <cacheEventListenerFactory
  86.             class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
  87.             properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true, asynchronousReplicationIntervalMillis=1000" />
  88.         <bootstrapCacheLoaderFactory
  89.             class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
  90.             properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000" />
  91.     </cache>
  92.     <cache
  93.         name="com.liferay.portlet.calendar.service.impl.CalEventLocalUtil"
  94.         maxElementsInMemory="10000"
  95.         eternal="false"
  96.        timeToIdleSeconds="100"
  97.         overflowToDisk="true"
  98.     >
  99.         <cacheEventListenerFactory
  100.             class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
  101.             properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true, asynchronousReplicationIntervalMillis=1000" />
  102.         <bootstrapCacheLoaderFactory
  103.             class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
  104.             properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000" />
  105.     </cache>
  106.     <cache
  107.         name="com.liferay.portlet.journalcontent.util.JournalContent"
  108.         maxElementsInMemory="1000"
  109.         eternal="false"
  110.         timeToLiveSeconds="100"
  111.         overflowToDisk="true"
  112.     >
  113.         <cacheEventListenerFactory
  114.             class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
  115.             properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true, asynchronousReplicationIntervalMillis=1000" />
  116.         <bootstrapCacheLoaderFactory
  117.             class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
  118.             properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000" />
  119.     </cache>
  120. </ehcache>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement