Interface CacheStats
-
public interface CacheStats
Statistics about a Cache.The data returned by this interface may not be 100% accurate, due to concurrency optimizations in implementations.
- Author:
- Michael Vorburger.ch
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
estimatedCurrentEntries()
Number of key/value pair entries currently in the cache.com.google.common.collect.ImmutableMap<String,Number>
extensions()
Extensions provide implementation specific cache stats.long
hitCount()
Number of "hits" in the cache.long
missCount()
Number of "misses" in the cache.
-
-
-
Method Detail
-
estimatedCurrentEntries
long estimatedCurrentEntries()
Number of key/value pair entries currently in the cache.
-
missCount
long missCount()
Number of "misses" in the cache. A "miss" causes theCacheFunction
to have to be invoked on aCache.get(Object)
.
-
hitCount
long hitCount()
Number of "hits" in the cache. A "hit" is when a Cache can return from aCache.get(Object)
without having to use itsCacheFunction
.
-
-