RedisQueueDriver
class RedisQueueDriver implements QueueDriverInterface
Implements the QueueDriverInterface. This driver implements functions that support Redis queue operations.
Properties
| protected Client | $redis | The redis client. |
Methods
__construct(Client $redis)
The constructor for the RedisQueueDriver.
void
delete(mixed $jobId)
Deletes a job from the queue. Is a no-op with Redis.
array|null
pop(string $queue)
Retrieves and reserves the next available job from the specified queue.
void
push(string $queue, array $payload)
Pushes a new job onto the specified queue.
void
release(string $queue, array $payload, int $delay = 0)
Releases a job back onto the queue after a failure or delay.
Details
at line 25
__construct(Client $redis)
The constructor for the RedisQueueDriver.
at line 35
void
delete(mixed $jobId)
Deletes a job from the queue. Is a no-op with Redis.
at line 43
array|null
pop(string $queue)
Retrieves and reserves the next available job from the specified queue.
at line 59
void
push(string $queue, array $payload)
Pushes a new job onto the specified queue.
at line 71
void
release(string $queue, array $payload, int $delay = 0)
Releases a job back onto the queue after a failure or delay.