class RedisWatcher extends Watcher

Properties

static protected bool $eventsEnabled

Indicates if the redis event is enabled.

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
static void
enableRedisEvents(Application $app)

Enable Redis events.

void
recordCommand(CommandExecuted $event)

Record a Redis command was executed.

static void
flushState()

Flush all static state.

Details

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

Create a new watcher instance.

Parameters

array $options

the configured watcher options

at line 25
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 41
static void enableRedisEvents(Application $app)

Enable Redis events.

Applies a worker-wide Redis event override, refreshes existing mismatched pools, and sets a static flag; runtime use races across coroutines.

Parameters

Application $app

Return Value

void

at line 52
void recordCommand(CommandExecuted $event)

Record a Redis command was executed.

Parameters

CommandExecuted $event

Return Value

void

at line 113
static void flushState()

Flush all static state.

Return Value

void