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.

integer
getRegionHitCount(string $regionName)

Get the number of entries successfully retrieved from cache.

integer
getRegionMissCount(string $regionName)

Get the number of cached entries not found in cache.

integer
getRegionPutCount(string $regionName)

Get the number of cacheable entries put in cache.

array
getRegionsMiss()

No description

array
getRegionsHit()

No description

array
getRegionsPut()

No description

clearRegionStats(string $regionName)

Clear region statistics

clearStats()

Clear all statistics

integer
getPutCount()

Get the total number of put in cache.

integer
getHitCount()

Get the total number of entries successfully retrieved from cache.

integer
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.

integer getRegionHitCount(string $regionName)

Get the number of entries successfully retrieved from cache.

Parameters

string $regionName The name of the cache region.

Return Value

integer

integer getRegionMissCount(string $regionName)

Get the number of cached entries not found in cache.

Parameters

string $regionName The name of the cache region.

Return Value

integer

integer getRegionPutCount(string $regionName)

Get the number of cacheable entries put in cache.

Parameters

string $regionName The name of the cache region.

Return Value

integer

array getRegionsMiss()

Return Value

array

array getRegionsHit()

Return Value

array

array getRegionsPut()

Return Value

array

clearRegionStats(string $regionName)

Clear region statistics

Parameters

string $regionName The name of the cache region.

clearStats()

Clear all statistics

integer getPutCount()

Get the total number of put in cache.

Return Value

integer

integer getHitCount()

Get the total number of entries successfully retrieved from cache.

Return Value

integer

integer getMissCount()

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

Return Value

integer