3 Replies Latest reply on Apr 16, 2012 5:06 AM by Galder Zamarreño

    Is possible to get negative count of cache entry

    dex chen Novice

      Hi, all:

      I am wondering if possible a cache returns a negative number for number of cache entries.

      For example, in the following code, is possible the count negative?


      int count = cache.size();


      Can I assume the size() never return negative value in any configurations?


      Other questions: how does infinispan keep the count of the size of a cache?  is there any performance penality if I call cache.size() operation periodically?