OSCache 2.0.1, disk persistence
"Sullivan, Sean C - MWT" <[email protected]>
| Newsgroups | gmane.comp.java.open-symphony.os-cache |
|---|---|
| Message-ID | <462D5240F6F9154AB0F9B345A5F03E3E02239BED@cnfqe029.cnf.prod.cnf.com> |
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