I am implementing the disk cache (jcs) for the first time. I would like to configure the cache.ccf file to allow the disk caching. My cache.ccf file has this configuration:
jcs.region.lesson=blockDiskCache
jcs.region.lesson.cacheattributes=org.apache.commons.jcs.engine.CompositeCacheAttributes
jcs.region.lesson.cacheattributes.MaxObjects=2
jcs.region.lesson.cacheattributes.MemoryCacheName=org.apache.commons.jcs.engine.memory.lru.LRUMemoryCache
jcs.auxiliary.blockDiskCache=org.apache.commons.jcs.auxiliary.disk.block.BlockDiskCacheFactory
jcs.auxiliary.blockDiskCache.attributes=org.apache.commons.jcs.auxiliary.disk.block.BlockDis kCacheAttributes
jcs.auxiliary.blockDiskCache.attributes.DiskPath=user.home/jcs_swap
jcs.auxiliary.blockDiskCache.attributes.MaxPurgatorySize=300000
jcs.auxiliary.blockDiskCache.attributes.MaxKeySize=1000000
jcs.auxiliary.blockDiskCache.attributes.blockSizeBytes=500
jcs.auxiliary.blockDiskCache.attributes.EventQueueType=SINGLE
thread_pool.default.boundarySize=2000
thread_pool.default.maximumPoolSize=150
thread_pool.default.minimumPoolSize=4
thread_pool.default.keepAliveTime=350000
thread_pool.default.whenBlockedPolicy=RUN
thread_pool.default.startUpSize=4
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
I checked the debug and I saw the following: The first object is saved in the cache. When I save the second object (the memory cache exceeds its maximum size ), this object is not saved in the disk. I dont know if the problem is in jcs.auxiliary.blockDiskCache.attributes.DiskPath property or in another configuration.
Can you help me, please?
Thanks :)