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