mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-07 18:25:23 +00:00
84033: Merged V4.2-BUG-FIX (4.2.4) to HEAD-BUG-FIX (5.0/Cloud) 83385: MNT-12297: TransactionalCache equality checks lead to false negatives in a cluster - TransactionalCache uses ValueHolder to store values put into the cache. - Each ValueHolder will have a new random integer to distinguish it from the next - TransactionalCache equality checks no longer use reference equality and instead use the ValueHolder.equals() method for most cases. This actual client value .equals() is used where 'allowEquals' is true. - Immutable caches always assume the backing cache is correct, still. 83391: Fix test doing checks in low-level cache (r83385 MNT-12297) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@84621 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
17 lines
740 B
XML
17 lines
740 B
XML
<?xml version='1.0' encoding='UTF-8'?>
|
|
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
|
|
|
|
<!-- sample bean configuration to test cache configurations -->
|
|
<beans>
|
|
|
|
<bean name="objectCache" class="org.alfresco.repo.cache.DefaultSimpleCache" />
|
|
|
|
<bean name="backingCache" class="org.alfresco.repo.cache.SerializingSimpleCache" />
|
|
|
|
<bean name="transactionalCache" class="org.alfresco.repo.cache.TransactionalCache">
|
|
<property name="sharedCache"><ref bean="backingCache" /></property>
|
|
<property name="name"><value>transactionalCache</value></property>
|
|
<property name="maxCacheSize"><value>200000</value></property>
|
|
</bean>
|
|
|
|
</beans> |