I am using oscache of opensymphony to use caching of data. My code problem is as follows: I store some key and objects in cache, then read a file and do some comparisons, on basis of these, i take the object out of the cache whichever matches and then again add an element to the cache with the Key altered with say a "_" for identification. After reading of say 10 lines of file, i need to take all the entries of cache with the key starting with "A" as the first character and not having the suffix as "_" in the key.
Is there any funda of groups or something else? Could you provide me some guidelines on this?