Get by group?

[email protected]
Newsgroups gmane.comp.java.open-symphony.os-cache
Message-ID <[email protected]>
All,

I am using OSCache as a caching API in a servlet based application.  The
groups functionality holds great promise for what I need, but isn't quite
there.  Why does OSCache not support retrieving a List of objects from the
cache by group name?  I can group things in cache, which is great for
expiring a number of related objects at a time, but I can't retrieve those
related objects by the group name.  This capability is absolutely imperative
for me.  Is anyone else doing something similar?  

The other thing I would like is for the entire group to be expired together
if any member of the group is expired.  When an object is expired, the cache
would have to iterate over the groups that that object is a part of and
expire all of the other objects in the cache (expire by group name).  The
reason that this part is important is because I would like to provide
methods that return lists of objects in the cache (based on group name), and
I need to be sure the list is complete.  If I put the complete list into the
cache, but later on, one or more objects in a group are expired (perhaps
because the size limit has been reached), this list is no longer complete
and I need to go to the database again and retrieve the complete list.

I would love to hear if someone else is doing something similar and has
figured out a different way of doing it.

Thanks,

Chris Black



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.