Method |
Description |
|
__construct ( string $default = null ) |
Create a new queue instance |
|
job ( string $id ) : Job |
Get a job by id |
|
later ( integer $delay, string $job, array $data = [], string $queue = null ) : Job |
Queue a job for later retrieval. Jobs are unique per queue and
are deleted upon retrieval. If a given job (payload) already exists,
it is updated with the new delay. |
|
pop ( array $queues, integer $timeout = 10, boolean $blocking = true ) : Job | false |
Pop the next job off of the queue. |
|
push ( string $job, array $data = null, string $queue = null ) : Job |
Push a new job onto the queue |
|
redisKey ( Queue | null $queue = null, string | null $suffix = null ) : string |
Get the Queue key |
|
size ( string $queue ) : integer |
Return the size (number of pending jobs) of the specified queue. |
|
sizeDelayed ( string $queue ) : integer |
Return the size (number of delayed jobs) of the specified queue. |
|