1 Reply Latest reply on Jun 21, 2004 1:26 PM by belaban

    API request exists(Fqn, key)

    mfrost

      Would it be possible to include the following on TreeCache:

      boolean exists(Fqn fqn, String key)
      


      Which will return true if a value exists at the specified node for the specified key.

      I've currently used the get(Fqn, key) method and tested for null.

      cheers

      mark

        • 1. Re: API request exists(Fqn, key)
          belaban

          I recently added an exists(Fqn) method, I'll add another one for exists(Fqn, Object key).

          Note, that there is a diff between get() and exists(): get will try to load the node/value from the CacheLoader, whereas exists() will not (just a memory check).

          Bela