Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-3900

Expose mechanism to retrieve the set of keys associated with a group

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 7.0.0.Beta1
    • 6.0.1.Final
    • Core
    • None

      The grouping API allows the association of set of keys to a group. It would be useful to be able to obtain the set of keys associated with a given group.

      In WildFly, a web session is stored using multiple cache entries, one entry for the session meta data (key is session id), and one entry for each session attribute (key is session id + attribute name). In order to look up find all the entries for a given session, the cache entry storing the meta has to store an additional Set<String> of attribute names so that I can locate all session attribute cache entries for a given session. Not only information redundant and bloats the session, but if I add or remove session attributes, I additionally need to replace the value for the cache entry containing the session meta data (since the set it contains will have mutated). This latter part could be avoided if Infinispan provided a mechanism to return all the cache keys that map to a given group.

            mircea.markus Mircea Markus (Inactive)
            pferraro@redhat.com Paul Ferraro
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: