2 Replies Latest reply on Nov 19, 2008 3:09 PM by genman

    JBCACHE-1442 "setData()" call


      This is an API extension to Cache, a new "setData" call, which basically is the same as the old "putData(Map, boolean erase)" call.

      I would like some people's input on this patch.

      I'd like to see this in post 3.0, if possible, for my own project.

        • 1. Re: JBCACHE-1442

          A bit like Map.replace()?

          • 2. Re: JBCACHE-1442

            Cache.getNode(Fqn).replaceAll() would be one possible API solution except if the node doesn't exist you get a NPE.

            Maybe there should be a Cache.createNode(Fqn) API which created or returned the existing node at the FQN, without loading it?