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.

    • Method Detail

      • estimatedCurrentEntries

        long estimatedCurrentEntries()
        Number of key/value pair entries currently in the cache.
      • hitCount

        long hitCount()
        Number of "hits" in the cache. A "hit" is when a Cache can return from a Cache.get(Object) without having to use its CacheFunction.
      • extensions<String,​Number> extensions()
        Extensions provide implementation specific cache stats. This is good enough for e.g. a CLI to dump and display to end-users.