6 Replies Latest reply on May 23, 2012 1:25 PM by dex chen

    What is the correct way to get all keySet of a cache

    dex chen Novice

      On Cache interface, the method Set<K> keySet() and values() are all stated "

      This method should only be used for testing or debugging purposes such as to verify that the cache contains all the

          * keys (values) entered. Any other use involving execution of this method on a production system is not recommended."


      However, I did not see other alternatives to get keySet of a cache. What is the correct way to do this?


      Note: I have replication mode here.