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
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 24
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

at line 40
static void enableRedisEvents(Application $app)

Enable Redis events.

Boot-only. 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 50
void recordCommand(CommandExecuted $event)

Record a Redis command was executed.

Parameters

CommandExecuted $event

Return Value

void

at line 111
static void flushState()

Flush all static state.

Return Value

void