Cache statistics are accumulated since the time a cache is created.
Each CacheStatistics represents a named cache's per node statistics data.
Sample code for accessing to node's local cache statistics:
ICache<String , SessionData> iCache = cache.unwrap( ICache.class ); CacheStatistics nodeLocalCacheStatistics = iCache.getLocalCacheStatistics(); long cacheHits = nodeLocalCacheStatistics.getCacheHits();
@since 3.3.1
|
|