[Opensymphony-oscache] problem with caching
nospor <[email protected]> Tue, 12 Jul 2005 02:00:47 CDT
| Newsgroups | gmane.comp.java.open-symphony.os-cache |
|---|---|
| Message-ID | <32535818.1121151677684.JavaMail.os-j2ee@opensymphony01.contegix.com> |
I can attach, but this is a standard code:
try
{
pc = (PostingCollection) cache.getFromCache(chid);
}
catch (NeedsRefreshException nre)
{
pf.Collect();
pc = pf.getPostings();
cache.putInCache(chid, pc, getChannelsGroups(pf.getChannels()));
}
where object cache is:
GeneralCacheAdministrator admin = new GeneralCacheAdministrator();
cache = admin.getCache();
cache is initialized once for application.
This works when i have cache.memory = true. When I have cache.memory = false i doesn't work
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=3825&messageID=10302#10302