Re: OSCache 2.0.1, disk persistence

Hani Suleiman <[email protected]>
Newsgroups gmane.comp.java.open-symphony.os-cache
Message-ID <[email protected]>
You don't need to specify any disk properties if you don't want any 
disk persistence (no need to specify cache.unlimited.disk)

On Jan 19, 2004, at 6:59 PM, Sullivan, Sean C - MWT wrote:

>
> I am using OSCache 2.0.1
>
> I have two requirements:
>
>   1) I want to cache objects in memory
>   2) I do NOT want disk persistence.
>
> Are these suitable properties?
>
> 	Properties properties = new Properties();
> 	properties.put("cache.memory", "true");
> 	properties.put("cache.capacity", "1000");
> 	properties.put("cache.algorithm",
>           "com.opensymphony.oscache.base.algorithm.LRUCache");
> 	properties.put("cache.unlimited.disk", "false");
> 	properties.put("cache.blocking", "false");
>
> 	cache = new GeneralCacheAdministrator(properties);
>
> Cheers,
>
> -Sean
>
>
>
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> _______________________________________________
> Opensymphony-oscache mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-oscache
>



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
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.