add bean declaration of cache#users in applicationContext.xml to ease change

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1424690 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-12-20 20:41:51 +00:00
parent 5e4827a1b6
commit e3c7748075
1 changed files with 11 additions and 0 deletions

View File

@ -149,6 +149,17 @@
<property name="resource" value="archiva-mime-types.txt"/> <property name="resource" value="archiva-mime-types.txt"/>
</bean> </bean>
--> -->
<!-- for change configuration of the users cache -->
<bean name="cache#users" class="org.apache.archiva.redback.components.cache.ehcache.EhcacheCache"
init-method="initialize">
<property name="diskPersistent" value="false"/>
<property name="eternal" value="false"/>
<property name="maxElementsInMemory" value="1000"/>
<property name="memoryEvictionPolicy" value="LRU"/>
<property name="name" value="usersCache"/>
<property name="timeToIdleSeconds" value="1800"/>
<property name="timeToLiveSeconds" value="14400"/>
</bean>
<!-- override jcr repository location --> <!-- override jcr repository location -->
<!-- START SNIPPET: jcr-location --> <!-- START SNIPPET: jcr-location -->