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
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 16
__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 29
Watcher setOptions(array $options)

Set the watcher options.

Parameters

array $options

Return Value

Watcher

at line 43
static void enableRedisEvents(Application $app)

Enable Redis events.

Boot-only. Must be called before Redis connections are created. Mutates a worker-wide Redis event override and a static flag; runtime use races across coroutines.

This function needs to be called before the Redis connection is created.

Parameters

Application $app

Return Value

void

at line 53
void recordCommand(CommandExecuted $event)

Record a Redis command was executed.

Parameters

CommandExecuted $event

Return Value

void

at line 114
static void flushState()

Flush all static state.

Return Value

void