You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@velocity.apache.org by by...@apache.org on 2009/01/03 14:53:13 UTC

svn commit: r730986 - /velocity/engine/trunk/xdocs/docs/developer-guide.xml

Author: byron
Date: Sat Jan  3 05:53:13 2009
New Revision: 730986

URL: http://svn.apache.org/viewvc?rev=730986&view=rev
Log:
VELOCITY-648 update docs for implications of setting the resource loader cache size

Modified:
    velocity/engine/trunk/xdocs/docs/developer-guide.xml

Modified: velocity/engine/trunk/xdocs/docs/developer-guide.xml
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/xdocs/docs/developer-guide.xml?rev=730986&r1=730985&r2=730986&view=diff
==============================================================================
--- velocity/engine/trunk/xdocs/docs/developer-guide.xml (original)
+++ velocity/engine/trunk/xdocs/docs/developer-guide.xml Sat Jan  3 05:53:13 2009
@@ -1716,18 +1716,18 @@
 <br/>
 Declares the class to be used
 for resource caching.  The current default is
-<code>org.apache.velocity.runtime.resource.ResourceCacheImpl</code>
-which uses a LRU Map to prevent data from being held forever.  You can
-set the size of the LRU Map using the parameter
-<code>resource.manager.defaultcache.size</code>.  The dafault value
-of the default cache size is currently 89.
+<code>org.apache.velocity.runtime.resource.ResourceCacheImpl</code>.
+When <code>resource.manager.defaultcache.size</code> is set to 0, then
+the default implementation is the standard java ConcurrentHashMap.
+Otherwise, a non-zero cache size  uses an LRU Map.  The default cache size
+is 89.  Note that the ConcurrentHashMap may be better at thread concurrency.
 </p>
 
 <p>
 <code>resource.manager.defaultcache.size</code> 
     <br/>
-    Sets the size of the
-    default implementation of the resource manager resource cache.
+    Sets the size of the default implementation of the resource
+    manager cache size.  The default is 89.
 </p>
 
 <p>
@@ -2735,3 +2735,6 @@
 
 </body>
 </document>
+
+<!-- LocalWords:  ConcurrentHashMap
+-->