Interface Stats (2.0.0)

public interface Stats

Statistics from the cache, available via MemcacheService#getStatistics()

Methods

getBytesReturnedForHits()

public abstract long getBytesReturnedForHits()

Sum of key and value bytes in successful get() and contains().

Returns
TypeDescription
long

getHitCount()

public abstract long getHitCount()

The counter of "successful" MemcacheService#get(Object) or MemcacheService#contains(Object) operations.

Returns
TypeDescription
long

getItemCount()

public abstract long getItemCount()

Number of entries currently "alive" in the cache.

Returns
TypeDescription
long

getMaxTimeWithoutAccess()

public abstract int getMaxTimeWithoutAccess()

Milliseconds since last access of least-recently-used live entry.

Returns
TypeDescription
int

getMissCount()

public abstract long getMissCount()

The counter of "unsuccessful" MemcacheService#get(Object) or MemcacheService#contains(Object) operations.

Returns
TypeDescription
long

getTotalItemBytes()

public abstract long getTotalItemBytes()

Sum of key and value sizes for all live entries currently in cache.

Returns
TypeDescription
long