Documentation

CacheCollector extends DataCollector
in package
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>

Properties

$_cache_calls

private array<string|int, mixed> $_cache_calls = []

Methods

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>

getWidgets()

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>

        
On this page

Search results