class CacheWatcher extends Watcher

Methods

__construct(array $options = [])

Create a new watcher instance.

from  Watcher
void
register(Application $app)

Register the watcher.

setOptions(array $options)

Set the watcher options.

from  Watcher
array
hideParameters(array $data, array $hidden)

Hide the given parameters.

from  Watcher
string
hideQueryParameters(string $uri)

Hide query credentials without changing unrelated URL bytes.

from  Watcher
void
recordCacheHit(CacheHit $event)

Record a cache key was found.

void
recordCacheMissed(CacheMissed $event)

Record a missing cache key.

void
recordKeyWritten(KeyWritten $event)

Record a cache key was updated.

void
recordKeyForgotten(KeyForgotten $event)

Record a cache key was forgotten / removed.

int|null
formatExpiration(KeyWritten $event)

No description

Details

in Watcher at line 18
__construct(array $options = [])

Create a new watcher instance.

Parameters

array $options

the configured watcher options

at line 23
void register(Application $app)

Register the watcher.

Parameters

Application $app

Return Value

void

in Watcher at line 31
Watcher setOptions(array $options)

Set the watcher options.

Parameters

array $options

Return Value

Watcher

in Watcher at line 41
protected array hideParameters(array $data, array $hidden)

Hide the given parameters.

Parameters

array $data
array $hidden

Return Value

array

in Watcher at line 55
protected string hideQueryParameters(string $uri)

Hide query credentials without changing unrelated URL bytes.

Parameters

string $uri

Return Value

string

at line 36
void recordCacheHit(CacheHit $event)

Record a cache key was found.

Parameters

CacheHit $event

Return Value

void

at line 52
void recordCacheMissed(CacheMissed $event)

Record a missing cache key.

Parameters

CacheMissed $event

Return Value

void

at line 67
void recordKeyWritten(KeyWritten $event)

Record a cache key was updated.

Parameters

KeyWritten $event

Return Value

void

at line 84
void recordKeyForgotten(KeyForgotten $event)

Record a cache key was forgotten / removed.

Parameters

KeyForgotten $event

Return Value

void

at line 117
protected int|null formatExpiration(KeyWritten $event)

No description

Parameters

KeyWritten $event

Return Value

int|null