[Opensymphony-oscache] Feature Request: flushGroupByPattern
Tiago <[email protected]> Mon, 11 Jul 2005 12:32:18 CDT
| Newsgroups | gmane.comp.java.open-symphony.os-cache |
|---|---|
| Message-ID | <2553505.1121103168971.JavaMail.os-j2ee@opensymphony01.contegix.com> |
com.opensymphony.oscache.base.Cache.flushPattern(String pattern) searches for the pattern in the entire cache.
com.opensymphony.oscache.base.Cache.flushGroup(String group) flushes all entries from a given group.
I suggest to create a function similar to flushPattern that would flush entries belonging to a given group, whose keys match the pattern.
I.e. for each groupEntry in getGroup(group) {
if groupEntry.key.indexOf(pattern) {
flushEntry(groupEntry);
}
}
something like that.
Cheers,
Tiago
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=4164&messageID=10247#10247