[Opensymphony-oscache] NeedsRefreshException
Tomer Mor <[email protected]>
| Newsgroups | gmane.comp.java.open-symphony.os-cache |
|---|---|
| Message-ID | <32834634.1112715511434.JavaMail.os-j2ee@opensymphony01.contegix.com> |
Hi all
i'm implementing a cache manager to our application
i decided to try to work with OSCache but when i tried to getFromCache i get a NeedsRefreshException
although the object exists at the cache.
i'm using com.opensymphony.oscache.general.GeneralCacheAdministrator as the cache object
in the putInCache method i used the putInCache(String key, Object content, String[] groups)
in the getFromCache i used getFromCache(String key, int refreshPeriod, String cronExpiry)
when refreshPeriod=-1, cronExpiry= null.
in the configuration file i have only 3 properties define (all the other is OSCache defaults):
cache.persistence.class=com.opensymphony.oscache.plugins.diskpersistence.DiskPersistenceListener, cache.capacity=1000
cache.path=<my path>
do you have any idea what is the problem??
what did i do wrong?
Thanks
Tomer
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=1301&messageID=4081#4081