Author: asmuts
Date: Fri Sep 22 13:16:05 2006
New Revision: 449070

URL: http://svn.apache.org/viewvc?view=rev&rev=449070
Log:
Adding initial block disk cache documentation.

Added:
    jakarta/jcs/trunk/xdocs/BlockDiskCache.xml
Modified:
    jakarta/jcs/trunk/xdocs/navigation.xml

Added: jakarta/jcs/trunk/xdocs/BlockDiskCache.xml
URL: 
http://svn.apache.org/viewvc/jakarta/jcs/trunk/xdocs/BlockDiskCache.xml?view=auto&rev=449070
==============================================================================
--- jakarta/jcs/trunk/xdocs/BlockDiskCache.xml (added)
+++ jakarta/jcs/trunk/xdocs/BlockDiskCache.xml Fri Sep 22 13:16:05 2006
@@ -0,0 +1,74 @@
+<?xml version="1.0"?>

+

+<document>

+       <properties>

+               <title>Block Disk Cache</title>

+               <author email="[EMAIL PROTECTED]">Aaron Smuts</author>

+       </properties>

+

+       <body>

+               <section name="Block Disk Auxiliary Cache">

+                       <p>

+                               The Block Disk Cache stores cached values on 
disk. Like

+                               the Indexed Disk Cache, the Block Disk Cache 
keeps the

+                               keys in memory. The Block Disk Cache stores the 
values

+                               in a group of fixed size blocks, whereas the 
Indexed

+                               Disk Cache writes items to disk in one chunk.

+                       </p>

+                       <p>

+                               The Block Disk Cache has advantages over the 
normal

+                               indexed model for regions where the size of the 
items

+                               varies. Since all the blocks are the same size, 
the

+                               recycle bin is very simple. It is just a list 
of block

+                               numbers. Also, the Block Disk Cache will never 
need to

+                               be optimized. Once the maximum number of keys is

+                               reached, blocks will be reused.

+                       </p>

+                       

+                       <subsection name="Example cache.ccf">

+                               <source>

+                                       <![CDATA[       

+##############################################################                 
                

+##### DEFAULT REGION  ######################################## 

+

+jcs.default=blockDiskCache

+jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes

+jcs.default.cacheattributes.MaxObjects=0

+jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache

+                                       

+##############################################################                 
                

+##### AUXILIARY CACHES  ###################################### 

+

+# Block Disk Cache

+jcs.auxiliary.blockDiskCache=org.apache.jcs.auxiliary.disk.block.BlockDiskCacheFactory

+jcs.auxiliary.blockDiskCache.attributes=org.apache.jcs.auxiliary.disk.block.BlockDiskCacheAttributes

+jcs.auxiliary.blockDiskCache.attributes.DiskPath=target/test-sandbox/block-disk-cache-huge

+jcs.auxiliary.blockDiskCache.attributes.MaxPurgatorySize=300000

+jcs.auxiliary.blockDiskCache.attributes.MaxKeySize=1000000

+jcs.auxiliary.blockDiskCache.attributes.blockSizeBytes=500

+jcs.auxiliary.blockDiskCache.attributes.EventQueueType=SINGLE

+#jcs.auxiliary.blockDiskCache.attributes.EventQueuePoolName=disk_cache_event_queue

+

+##############################################################

+################## THREAD POOL CONFIGURATION #################

+

+# Default thread pool config

+thread_pool.default.boundarySize=2000

+thread_pool.default.maximumPoolSize=150

+thread_pool.default.minimumPoolSize=4

+thread_pool.default.keepAliveTime=350000

+#RUN ABORT WAIT BLOCK DISCARDOLDEST

+thread_pool.default.whenBlockedPolicy=RUN

+thread_pool.default.startUpSize=4

+

+# Disk Cache pool

+thread_pool.disk_cache_event_queue.useBoundary=false

+thread_pool.disk_cache_event_queue.minimumPoolSize=2

+thread_pool.disk_cache_event_queue.keepAliveTime=3500

+thread_pool.disk_cache_event_queue.startUpSize=10                              
                        

+        ]]>

+                               </source>

+                       </subsection>                   

+               </section>

+       </body>

+</document>
\ No newline at end of file

Modified: jakarta/jcs/trunk/xdocs/navigation.xml
URL: 
http://svn.apache.org/viewvc/jakarta/jcs/trunk/xdocs/navigation.xml?view=diff&rev=449070&r1=449069&r2=449070
==============================================================================
--- jakarta/jcs/trunk/xdocs/navigation.xml (original)
+++ jakarta/jcs/trunk/xdocs/navigation.xml Fri Sep 22 13:16:05 2006
@@ -45,6 +45,8 @@
                                        href="/IndexedDiskAuxCache.html" />
                                <item name="Indexed Disk Properties"
                                        href="/IndexedDiskCacheProperties.html" 
/>
+                               <item name="Block Disk Cache"
+                                       href="/BlockDiskCache.html" />
                                <item name="JDBC Disk Cache"
                                        href="/JDBCDiskCache.html" />
                                <item name="JDBC Disk Properties"
@@ -64,7 +66,6 @@
                                        href="/LateralJavaGroupsAuxCache.html" 
/>
                        </item>
                </menu>
-
-
+               
        </body>
 </project>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to