3 Replies Latest reply on Mar 12, 2012 10:38 AM by galder.zamarreno

    Iterating/Grouping Cache Entries

    david-koch

      Hello,

      from documentation "Using the Cache Api" I've lerned not to use the caches keySet() method in order to iterate over all cache entries.

      In order to get all objects of a group of entries I've maintained an own set of keys. But this seems to me a bit error prone.

       

      Is there any best practice to group entries other than mainain potentially big lists of keys refering to that objects?

      If getting inconsistencies between the the key set and the real business objects - by having missed to add a key to the key set when creating an object - is the entry a zombie entry because I couln'd reach it anymore?

       

      Thanks,

      David