1 Reply Latest reply on May 17, 2012 3:45 AM by Galder Zamarreño

    JdbmCacheStore.size() is not "supported", how to get the number of elements of the cache

    dex chen Novice

      I used JdbmCacheStore for one of my cache. In my code, I call cache.size() to get the number of elements in the cache. But, I saw the following WARN messages in the log:

      WARN  org.infinispan.loaders.jdbm.JdbmCacheStore[571] - size() should never be called; except for tests



      Look inside the code of JdbmCachStore, the size() is not really implemented.


      What is the correct way to get the size of the cache?