Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://ehcache.org/ehcache.xsd"
- updateCheck="false" monitoring="autodetect" dynamicConfig="false">
- <cacheManagerPeerProviderFactory class="net.sf.ehcache.distribution.jgroups.JGroupsCacheManagerPeerProviderFactory"/>
- <cache name = "EntitiesCacheRegion"
- maxEntriesLocalHeap="100000"
- eternal="true"
- timeToIdleSeconds="0"
- timeToLiveSeconds="0"
- overflowToDisk="false"
- diskPersistent="false"
- memoryStoreEvictionPolicy="LRU">
- <cacheEventListenerFactory
- class="net.sf.ehcache.distribution.jgroups.JGroupsCacheReplicatorFactory"
- properties="replicateAsynchronously=true, replicatePuts=false,
- replicateUpdates=true, replicateUpdatesViaCopy=false, replicateRemovals=true"/>
- </cache>
- <cache name = "org.hibernate.cache.internal.StandardQueryCache"
- maxEntriesLocalHeap="100000"
- eternal="true"
- timeToIdleSeconds="0"
- timeToLiveSeconds="0"
- overflowToDisk="false"
- diskPersistent="false"
- memoryStoreEvictionPolicy="LRU">
- <!-- Cache invalidation will happen based on the timestamps value, so the replication can be disabled -->
- </cache>
- <cache name = "org.hibernate.cache.spi.UpdateTimestampsCache"
- maxEntriesLocalHeap="1000"
- eternal="true"
- overflowToDisk="false"
- diskPersistent="false">
- <!-- replicatePuts and replicateUpdatesViaCopy must be set to true
- because timestamps should be copied for QueryCache to work correctly -->
- <cacheEventListenerFactory
- class="net.sf.ehcache.distribution.jgroups.JGroupsCacheReplicatorFactory"
- properties="replicateAsynchronously=true, replicatePuts=true,
- replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true"/>
- </cache>
- </ehcache>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement