CacheDataCollector
extends DataCollector
in package
implements
LateDataCollectorInterface
Tags
Table of Contents
Interfaces
- LateDataCollectorInterface
Properties
- $instances : array<string|int, TraceableAdapter>
Methods
- addInstance() : void
- collect() : void
- getAdapters() : array<string|int, mixed>
- Method returns all logged Cache adapter classes.
- getCalls() : mixed
- Method returns all logged Cache call objects.
- getName() : string
- getStatistics() : array<string|int, mixed>
- Method returns amount of logged Cache reads: "get" calls.
- getTotals() : array<string|int, mixed>
- Method returns the statistic totals.
- lateCollect() : void
- reset() : void
- calculateStatistics() : array<string|int, mixed>
- calculateTotalStatistics() : array<string|int, mixed>
Properties
$instances
private
array<string|int, TraceableAdapter>
$instances
= []
Methods
addInstance()
public
addInstance(string $name, TraceableAdapter $instance) : void
Parameters
- $name : string
- $instance : TraceableAdapter
collect()
public
collect(Request $request, Response $response[, Throwable|null $exception = null ]) : void
Parameters
- $request : Request
- $response : Response
- $exception : Throwable|null = null
getAdapters()
Method returns all logged Cache adapter classes.
public
getAdapters() : array<string|int, mixed>
Return values
array<string|int, mixed>getCalls()
Method returns all logged Cache call objects.
public
getCalls() : mixed
getName()
public
getName() : string
Return values
stringgetStatistics()
Method returns amount of logged Cache reads: "get" calls.
public
getStatistics() : array<string|int, mixed>
Return values
array<string|int, mixed>getTotals()
Method returns the statistic totals.
public
getTotals() : array<string|int, mixed>
Return values
array<string|int, mixed>lateCollect()
public
lateCollect() : void
reset()
public
reset() : void
calculateStatistics()
private
calculateStatistics() : array<string|int, mixed>
Return values
array<string|int, mixed>calculateTotalStatistics()
private
calculateTotalStatistics() : array<string|int, mixed>