[Opensymphony-oscache] Urgent help required: Disk caching problem
dres <[email protected]>
| Newsgroups | gmane.comp.java.open-symphony.os-cache |
|---|---|
| Message-ID | <25556151.1111080508319.JavaMail.os-j2ee@opensymphony01.contegix.com> |
There is no need to deal with Cache nor Config directly. try this:
Properties prop = new Properties();
prop.put("cache.memory", "true");
prop.put("cache.blocking", "true");
prop.put("cache.unlimited.disk", "false");
prop.put("cache.path", "C:\\temp");
prop.put("cache.persistence.class", "com.opensymphony.oscache.plugins.diskpersistence.HashDiskPersistenceListener") ;
prop.put("cache.persistence.overflow.only", "true");
prop.put("cache.capacity", "1");
GeneralCacheAdministrator cache = new GeneralCacheAdministrator(prop);
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=648&messageID=2835#2835