RedisWatcher
class RedisWatcher extends Watcher
Properties
| static protected bool | $eventsEnabled | Indicates if the redis event is enabled. |
Methods
Details
in
Watcher at line 16
__construct(array $options = [])
Create a new watcher instance.
at line 24
void
register(Application $app)
Register the 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.
at line 53
void
recordCommand(CommandExecuted $event)
Record a Redis command was executed.
at line 114
static void
flushState()
Flush all static state.