[Opensymphony-oscache] groups usage for a newbie

graulle <[email protected]> Fri, 29 Apr 2005 03:17:45 CDT
Newsgroups gmane.comp.java.open-symphony.os-cache
Message-ID <25185364.1114762695542.JavaMail.os-j2ee@opensymphony01.contegix.com>
You are right and objects I want to cache always belong to 2 "people", the full set and one parent so duplicate are expected.

Another approach could be to use several caches, as you mentioned earlier, and have a sort of "virtual" cache that is the union of all the others. In that case a query has to be done on each cache when I query the full set. This is a perf. penalty I am not sure to accept, yet.

A map of maps is another way but I am not sure its applicable to OScache. I have to think about it.

---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=1866&messageID=5752#5752