CacheLoggerChain
in package
implements
CacheLogger
Interfaces, Classes, Traits and Enums
- CacheLogger
- Interface for logging.
Table of Contents
- $loggers : array<string|int, CacheLogger>
- collectionCacheHit() : mixed
- Log an entity get from second level cache resulted in a hit.
- collectionCacheMiss() : mixed
- Log an entity get from second level cache resulted in a miss.
- collectionCachePut() : mixed
- Log an entity put into second level cache.
- entityCacheHit() : mixed
- Log an entity get from second level cache resulted in a hit.
- entityCacheMiss() : mixed
- Log an entity get from second level cache resulted in a miss.
- entityCachePut() : mixed
- Log an entity put into second level cache.
- getLogger() : CacheLogger|null
- getLoggers() : array<string|int, CacheLogger>
- queryCacheHit() : mixed
- Log a query get from the query cache resulted in a hit.
- queryCacheMiss() : mixed
- Log a query get from the query cache resulted in a miss.
- queryCachePut() : mixed
- Log a query put into the query cache.
- setLogger() : void
Properties
$loggers
private
array<string|int, CacheLogger>
$loggers
= []
Methods
collectionCacheHit()
Log an entity get from second level cache resulted in a hit.
public
collectionCacheHit(mixed $regionName, CollectionCacheKey $key) : mixed
Parameters
- $regionName : mixed
-
The name of the cache region.
- $key : CollectionCacheKey
-
The cache key of the collection.
Return values
mixed —collectionCacheMiss()
Log an entity get from second level cache resulted in a miss.
public
collectionCacheMiss(mixed $regionName, CollectionCacheKey $key) : mixed
Parameters
- $regionName : mixed
-
The name of the cache region.
- $key : CollectionCacheKey
-
The cache key of the collection.
Return values
mixed —collectionCachePut()
Log an entity put into second level cache.
public
collectionCachePut(mixed $regionName, CollectionCacheKey $key) : mixed
Parameters
- $regionName : mixed
-
The name of the cache region.
- $key : CollectionCacheKey
-
The cache key of the collection.
Return values
mixed —entityCacheHit()
Log an entity get from second level cache resulted in a hit.
public
entityCacheHit(mixed $regionName, EntityCacheKey $key) : mixed
Parameters
- $regionName : mixed
-
The name of the cache region.
- $key : EntityCacheKey
-
The cache key of the entity.
Return values
mixed —entityCacheMiss()
Log an entity get from second level cache resulted in a miss.
public
entityCacheMiss(mixed $regionName, EntityCacheKey $key) : mixed
Parameters
- $regionName : mixed
-
The name of the cache region.
- $key : EntityCacheKey
-
The cache key of the entity.
Return values
mixed —entityCachePut()
Log an entity put into second level cache.
public
entityCachePut(mixed $regionName, EntityCacheKey $key) : mixed
Parameters
- $regionName : mixed
-
The name of the cache region.
- $key : EntityCacheKey
-
The cache key of the entity.
Return values
mixed —getLogger()
public
getLogger(string $name) : CacheLogger|null
Parameters
- $name : string
Return values
CacheLogger|null —getLoggers()
public
getLoggers() : array<string|int, CacheLogger>
Return values
array<string|int, CacheLogger> —queryCacheHit()
Log a query get from the query cache resulted in a hit.
public
queryCacheHit(mixed $regionName, QueryCacheKey $key) : mixed
Parameters
- $regionName : mixed
-
The name of the cache region.
- $key : QueryCacheKey
-
The cache key of the query.
Return values
mixed —queryCacheMiss()
Log a query get from the query cache resulted in a miss.
public
queryCacheMiss(mixed $regionName, QueryCacheKey $key) : mixed
Parameters
- $regionName : mixed
-
The name of the cache region.
- $key : QueryCacheKey
-
The cache key of the query.
Return values
mixed —queryCachePut()
Log a query put into the query cache.
public
queryCachePut(mixed $regionName, QueryCacheKey $key) : mixed
Parameters
- $regionName : mixed
-
The name of the cache region.
- $key : QueryCacheKey
-
The cache key of the query.
Return values
mixed —setLogger()
public
setLogger(string $name, CacheLogger $logger) : void
Parameters
- $name : string
- $logger : CacheLogger