Author: joakime
Date: Thu Nov 30 10:10:57 2006
New Revision: 481022
URL: http://svn.apache.org/viewvc?view=rev&rev=481022
Log:
Adding cache definitions temporarily, until i can get
plexus-maven-plugin:merge-descriptors working.
Modified:
maven/archiva/trunk/archiva-webapp/src/main/resources/META-INF/plexus/application.xml
Modified:
maven/archiva/trunk/archiva-webapp/src/main/resources/META-INF/plexus/application.xml
URL:
http://svn.apache.org/viewvc/maven/archiva/trunk/archiva-webapp/src/main/resources/META-INF/plexus/application.xml?view=diff&rev=481022&r1=481021&r2=481022
==============================================================================
---
maven/archiva/trunk/archiva-webapp/src/main/resources/META-INF/plexus/application.xml
(original)
+++
maven/archiva/trunk/archiva-webapp/src/main/resources/META-INF/plexus/application.xml
Thu Nov 30 10:10:57 2006
@@ -339,6 +339,104 @@
</configuration>
</component>
+ <!-- ================================================================
+ Caches with Long Term entries
+ ================================================================ -->
+
+ <component>
+ <role>org.codehaus.plexus.ehcache.EhcacheComponent</role>
+ <role-hint>operations</role-hint>
+ <implementation>org.codehaus.plexus.ehcache.MemoryCache</implementation>
+ <description>MemoryCache for Operations</description>
+ <configuration>
+ <eternal>false</eternal>
+ <max-elements-in-memory>1000</max-elements-in-memory>
+ <memory-eviction-policy>LRU</memory-eviction-policy>
+ <name>operationsCache</name>
+ <time-to-idle-seconds>1800</time-to-idle-seconds>
+ <time-to-live-seconds>14400</time-to-live-seconds>
+ </configuration>
+ </component>
+
+ <component>
+ <role>org.codehaus.plexus.ehcache.EhcacheComponent</role>
+ <role-hint>permissions</role-hint>
+ <implementation>org.codehaus.plexus.ehcache.MemoryCache</implementation>
+ <description>MemoryCache for Permissions</description>
+ <configuration>
+ <eternal>false</eternal>
+ <max-elements-in-memory>1000</max-elements-in-memory>
+ <memory-eviction-policy>LRU</memory-eviction-policy>
+ <name>permissionsCache</name>
+ <time-to-idle-seconds>1800</time-to-idle-seconds>
+ <time-to-live-seconds>14400</time-to-live-seconds>
+ </configuration>
+ </component>
+
+ <component>
+ <role>org.codehaus.plexus.ehcache.EhcacheComponent</role>
+ <role-hint>resources</role-hint>
+ <implementation>org.codehaus.plexus.ehcache.MemoryCache</implementation>
+ <description>MemoryCache for Resources</description>
+ <configuration>
+ <eternal>false</eternal>
+ <max-elements-in-memory>1000</max-elements-in-memory>
+ <memory-eviction-policy>LRU</memory-eviction-policy>
+ <name>resourcesCache</name>
+ <time-to-idle-seconds>1800</time-to-idle-seconds>
+ <time-to-live-seconds>14400</time-to-live-seconds>
+ </configuration>
+ </component>
+
+ <component>
+ <role>org.codehaus.plexus.ehcache.EhcacheComponent</role>
+ <role-hint>roles</role-hint>
+ <implementation>org.codehaus.plexus.ehcache.MemoryCache</implementation>
+ <description>MemoryCache for Roles</description>
+ <configuration>
+ <eternal>false</eternal>
+ <max-elements-in-memory>1000</max-elements-in-memory>
+ <memory-eviction-policy>LRU</memory-eviction-policy>
+ <name>rolesCache</name>
+ <time-to-idle-seconds>1800</time-to-idle-seconds>
+ <time-to-live-seconds>14400</time-to-live-seconds>
+ </configuration>
+ </component>
+
+ <!-- ================================================================
+ Caches with Short Term entries
+ ================================================================ -->
+
+ <component>
+ <role>org.codehaus.plexus.ehcache.EhcacheComponent</role>
+ <role-hint>userAssignments</role-hint>
+ <implementation>org.codehaus.plexus.ehcache.MemoryCache</implementation>
+ <description>MemoryCache for UserAssignments</description>
+ <configuration>
+ <eternal>false</eternal>
+ <max-elements-in-memory>10000</max-elements-in-memory>
+ <memory-eviction-policy>LRU</memory-eviction-policy>
+ <name>userAssignmentsCache</name>
+ <time-to-idle-seconds>300</time-to-idle-seconds>
+ <time-to-live-seconds>600</time-to-live-seconds>
+ </configuration>
+ </component>
+
+ <component>
+ <role>org.codehaus.plexus.ehcache.EhcacheComponent</role>
+ <role-hint>userPermissions</role-hint>
+ <implementation>org.codehaus.plexus.ehcache.MemoryCache</implementation>
+ <description>MemoryCache for User Permissions</description>
+ <configuration>
+ <eternal>false</eternal>
+ <max-elements-in-memory>10000</max-elements-in-memory>
+ <memory-eviction-policy>LRU</memory-eviction-policy>
+ <name>userPermissionsCache</name>
+ <time-to-idle-seconds>300</time-to-idle-seconds>
+ <time-to-live-seconds>600</time-to-live-seconds>
+ </configuration>
+ </component>
+
</components>
<!-- Override default configuration of components -->