]> source.dussan.org Git - archiva.git/commitdiff
Adding cache definitions temporarily, until i can get plexus-maven-plugin:merge-descr...
authorJoakim Erdfelt <joakime@apache.org>
Thu, 30 Nov 2006 18:10:57 +0000 (18:10 +0000)
committerJoakim Erdfelt <joakime@apache.org>
Thu, 30 Nov 2006 18:10:57 +0000 (18:10 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@481022 13f79535-47bb-0310-9956-ffa450edef68

archiva-webapp/src/main/resources/META-INF/plexus/application.xml

index 747fb5eca789c8a6eea091ad1d011011f89bcfb6..5fa963b11cb3b7a27e2e285dc43b2e149153783e 100644 (file)
       </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 -->