infinispan/infinispan — pull request #2780 by galderz (2014-08-07 09:11:15+00:00)
Title: ISPN-4470 RemoteCache's size() method should compute size globally

Improves on the original solution in #2713 by using statistics to calculate total number of entries in the cluster, and if the statistics are disabled, it falls back retrieving the key set and getting its size.