QueueRedisPlugin
Registers the redis queue driver alias and publishes queue.redis.* config defaults.
Unlike QueueDbPlugin, the Redis connection is self-contained (built straight from a DSN, no dependency on the current Context’s DatabaseManager).
Synopsis
Section titled “Synopsis”final class QueueRedisPlugin implements PluginInterface
| Implements | PluginInterface |
| Source | QueueRedisPlugin.php |
Methods
Section titled “Methods”| Method | Description |
|---|---|
register(PluginRegistrar $registrar): void | Publishes the queue.redis.* defaults and registers the redis driver. |
register()
Section titled “register()”public function register(PluginRegistrar $registrar): void
Publishes the queue.redis.* defaults and registers the redis driver.
Adds the redis alias to QueueDriverRegistry and binds RedisQueueDriver as a singleton whose factory builds a Predis client from queue.redis.dsn. The client is constructed lazily, when the driver is first resolved, not while plugins are registering.
| Parameter | Type | Description |
|---|---|---|
$registrar | PluginRegistrar |