class StatisticsCacheLogger implements CacheLogger (View source)

Provide basic second level cache statistics.

Methods

collectionCacheMiss(string $regionName, CollectionCacheKey $key)

Log an entity get from second level cache resulted in a miss.

collectionCacheHit(string $regionName, CollectionCacheKey $key)

Log an entity get from second level cache resulted in a hit.

collectionCachePut(string $regionName, CollectionCacheKey $key)

Log an entity put into second level cache.

entityCacheMiss(string $regionName, EntityCacheKey $key)

Log an entity get from second level cache resulted in a miss.

entityCacheHit(string $regionName, EntityCacheKey $key)

Log an entity get from second level cache resulted in a hit.

entityCachePut(string $regionName, EntityCacheKey $key)

Log an entity put into second level cache.

queryCacheHit(string $regionName, QueryCacheKey $key)

Log a query get from the query cache resulted in a hit.

queryCacheMiss(string $regionName, QueryCacheKey $key)

Log a query get from the query cache resulted in a miss.

queryCachePut(string $regionName, QueryCacheKey $key)

Log a query put into the query cache.

int
getRegionHitCount(string $regionName)

Get the number of entries successfully retrieved from cache.

int
getRegionMissCount(string $regionName)

Get the number of cached entries not found in cache.

int
getRegionPutCount(string $regionName)

Get the number of cacheable entries put in cache.

int[]
getRegionsMiss()

No description

int[]
getRegionsHit()

No description

int[]
getRegionsPut()

No description

clearRegionStats(string $regionName)

Clear region statistics

clearStats()

Clear all statistics

int
getPutCount()

Get the total number of put in cache.

int
getHitCount()

Get the total number of entries successfully retrieved from cache.

int
getMissCount()

Get the total number of cached entries not found in cache.

Details

collectionCacheMiss(string $regionName, CollectionCacheKey $key)

Log an entity get from second level cache resulted in a miss.

Parameters

string $regionName The name of the cache region.
CollectionCacheKey $key The cache key of the collection.

collectionCacheHit(string $regionName, CollectionCacheKey $key)

Log an entity get from second level cache resulted in a hit.

Parameters

string $regionName The name of the cache region.
CollectionCacheKey $key The cache key of the collection.

collectionCachePut(string $regionName, CollectionCacheKey $key)

Log an entity put into second level cache.

Parameters

string $regionName The name of the cache region.
CollectionCacheKey $key The cache key of the collection.

entityCacheMiss(string $regionName, EntityCacheKey $key)

Log an entity get from second level cache resulted in a miss.

Parameters

string $regionName The name of the cache region.
EntityCacheKey $key The cache key of the entity.

entityCacheHit(string $regionName, EntityCacheKey $key)

Log an entity get from second level cache resulted in a hit.

Parameters

string $regionName The name of the cache region.
EntityCacheKey $key The cache key of the entity.

entityCachePut(string $regionName, EntityCacheKey $key)

Log an entity put into second level cache.

Parameters

string $regionName The name of the cache region.
EntityCacheKey $key The cache key of the entity.

queryCacheHit(string $regionName, QueryCacheKey $key)

Log a query get from the query cache resulted in a hit.

Parameters

string $regionName The name of the cache region.
QueryCacheKey $key The cache key of the query.

queryCacheMiss(string $regionName, QueryCacheKey $key)

Log a query get from the query cache resulted in a miss.

Parameters

string $regionName The name of the cache region.
QueryCacheKey $key The cache key of the query.

queryCachePut(string $regionName, QueryCacheKey $key)

Log a query put into the query cache.

Parameters

string $regionName The name of the cache region.
QueryCacheKey $key The cache key of the query.

int getRegionHitCount(string $regionName)

Get the number of entries successfully retrieved from cache.

Parameters

string $regionName The name of the cache region.

Return Value

int

int getRegionMissCount(string $regionName)

Get the number of cached entries not found in cache.

Parameters

string $regionName The name of the cache region.

Return Value

int

int getRegionPutCount(string $regionName)

Get the number of cacheable entries put in cache.

Parameters

string $regionName The name of the cache region.

Return Value

int

int[] getRegionsMiss()

Return Value

int[]

int[] getRegionsHit()

Return Value

int[]

int[] getRegionsPut()

Return Value

int[]

clearRegionStats(string $regionName)

Clear region statistics

Parameters

string $regionName The name of the cache region.

clearStats()

Clear all statistics

int getPutCount()

Get the total number of put in cache.

Return Value

int

int getHitCount()

Get the total number of entries successfully retrieved from cache.

Return Value

int

int getMissCount()

Get the total number of cached entries not found in cache.

Return Value

int