CacheCollector
extends DataCollector
implements
Renderable, AssetProvider
Table of Contents
Interfaces
- Renderable
- AssetProvider
Properties
-
$_cache_calls
: array<string|int, mixed>
-
$_instance
: CacheCollector
Methods
-
collect()
: array<string|int, mixed>
-
getAssets()
: array<string|int, mixed>
-
getInstance()
: CacheCollector
-
getName()
: string
-
getWidgets()
: array<string|int, mixed>
-
recordCheck()
: void
-
recordHit()
: void
-
recordMiss()
: void
-
recordSet()
: void
-
recordEvent()
: array<string|int, mixed>
$_cache_calls
private
array<string|int, mixed>
$_cache_calls
= []
$_instance
private
static CacheCollector
$_instance
collect()
public
collect() : array<string|int, mixed>
Return values
array<string|int, mixed>
getAssets()
public
getAssets() : array<string|int, mixed>
Return values
array<string|int, mixed>
getInstance()
public
static getInstance() : CacheCollector
getName()
public
getName() : string
public
getWidgets() : array<string|int, mixed>
Return values
array<string|int, mixed>
recordCheck()
public
recordCheck(string $key, bool $is_cached) : void
Parameters
-
$key
: string
-
-
$is_cached
: bool
-
recordHit()
public
recordHit(string $key, mixed $value) : void
Parameters
-
$key
: string
-
-
$value
: mixed
-
recordMiss()
public
recordMiss(string $key) : void
Parameters
-
$key
: string
-
recordSet()
public
recordSet(string $key, mixed $value, int $ttl) : void
Parameters
-
$key
: string
-
-
$value
: mixed
-
-
$ttl
: int
-
recordEvent()
private
recordEvent(string $event, array<string|int, mixed> $params) : array<string|int, mixed>
Parameters
-
$event
: string
-
-
$params
: array<string|int, mixed>
-
Return values
array<string|int, mixed>