Yes, but it is somewhat expensive, since some of the
auxiliaries will have to iterate over their keysets.
Although all the auxiliaries honor this, it is not
part of the auxiliary API. There is no method along
the lines of "removeStartingWith", but all the remove
methods can do it.
By default, the hierarchical key delimiter used in
JCS is a colon. You cannot add a String key that
ends with a colon. If you call remove with a String
key that ends in a colon, everything that has a key
that starts with the argument will be removed.
If your keys are in this format
TYPE:SOURCE:OBJECT
And you put n objects int he cache with keys like
this
"ABC:123:0" to "ABC:123:n"
then you could remove all the obejcts by calling
jcs.remove( "ABC:123:" );
[top]