Author: chirag
Date: Thu Jun  3 04:26:11 2010
New Revision: 950869

URL: http://svn.apache.org/viewvc?rev=950869&view=rev
Log:
Add the cajoledDocuments cache to ehcacheConfig.xml
Code Review: http://codereview.appspot.com/1478041/show

Removed:
    shindig/trunk/java/common/src/main/resources/ehcache.properties
Modified:
    
shindig/trunk/java/common/src/main/java/org/apache/shindig/common/cache/ehcache/EhCacheCacheProvider.java
    
shindig/trunk/java/common/src/main/resources/org/apache/shindig/common/cache/ehcache/ehcacheConfig.xml

Modified: 
shindig/trunk/java/common/src/main/java/org/apache/shindig/common/cache/ehcache/EhCacheCacheProvider.java
URL: 
http://svn.apache.org/viewvc/shindig/trunk/java/common/src/main/java/org/apache/shindig/common/cache/ehcache/EhCacheCacheProvider.java?rev=950869&r1=950868&r2=950869&view=diff
==============================================================================
--- 
shindig/trunk/java/common/src/main/java/org/apache/shindig/common/cache/ehcache/EhCacheCacheProvider.java
 (original)
+++ 
shindig/trunk/java/common/src/main/java/org/apache/shindig/common/cache/ehcache/EhCacheCacheProvider.java
 Thu Jun  3 04:26:11 2010
@@ -53,7 +53,7 @@ public class EhCacheCacheProvider implem
   }
 
   /**
-   * Read the cache conifuration from the specified resource.
+   * Read the cache configuration from the specified resource.
    * This function is intended to be overrideable to allow for programmatic
    * cache configuration.
    * @param configPath

Modified: 
shindig/trunk/java/common/src/main/resources/org/apache/shindig/common/cache/ehcache/ehcacheConfig.xml
URL: 
http://svn.apache.org/viewvc/shindig/trunk/java/common/src/main/resources/org/apache/shindig/common/cache/ehcache/ehcacheConfig.xml?rev=950869&r1=950868&r2=950869&view=diff
==============================================================================
--- 
shindig/trunk/java/common/src/main/resources/org/apache/shindig/common/cache/ehcache/ehcacheConfig.xml
 (original)
+++ 
shindig/trunk/java/common/src/main/resources/org/apache/shindig/common/cache/ehcache/ehcacheConfig.xml
 Thu Jun  3 04:26:11 2010
@@ -87,4 +87,14 @@ under the License.
     overflowToDisk="false"
     diskPersistent="false"
     memoryStoreEvictionPolicy="LFU"/>
+
+  <!-- Used to cache cajoled documents based on their content -->
+  <cache name="cajoledDocuments"
+    maxElementsInMemory="1000"
+    eternal="false"
+    timeToIdleSeconds="300"
+    timeToLiveSeconds="600"
+    overflowToDisk="false"
+    diskPersistent="false"
+    memoryStoreEvictionPolicy="LFU"/>
 </ehcache>


Reply via email to