Re: [Opensymphony-oscache] Urgent help required: Disk caching problem

Chris Wood <[email protected]>
Newsgroups gmane.comp.java.open-symphony.os-cache
Message-ID <[email protected]>
Hi.

There's currently no way to limit the size of the disk cache in OSCache 
if you're using an overflow cache. Also if you're using a 'mirrored' 
configuration, the disk cache entries will leak when the VM containing 
the cache is shutdown.

I've got some tested code in which you can set the maximum size or 
number of objects in the on-disk cache, and have any extra ones purged 
as per the memory cache policy (works with LRU or FIFO).

I am willing to submit the code to the project as long as 146 is 
accepted, otherwise I could probably send you the forked code if that's 
possible under the terms of the licence.

Rajeev wrote:

>Hi 
>I am using both Memory as well disk caching..
>I have given the following in Oscache property file
>cache.capacity=100
>cache.unlimited.disk=false
>cache.persistence.overflow.only=true
>
>So after the 100 object are cached in the memory, the next 101 onwards will be cached on the Hard disk. But there is no limitation on the number of object being cached on Hard disk. How to limit this. 
>I have defined  cache.unlimited.disk=false which means disk cache will be limited in size to the value specified by cache.capacity, which is given 100 by me
>
>I hope you got what i want
>
>Regards
>Rajeev
>
>---------------------------------------------------------------------
>Posted via Jive Forums
>http://forums.opensymphony.com/thread.jspa?threadID=648&messageID=2615#2615
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [email protected]
>For additional commands, e-mail: [email protected]
>
>  
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.