RedisQueue
class RedisQueue extends Queue implements Queue (View source)
Methods
Push a new job onto the queue.
Push a new job onto the queue after a delay.
Push an array of jobs onto the queue.
Create a new Redis queue instance.
Push a new job onto the queue.
Push a raw payload onto the queue.
Release a reserved job back onto the queue.
Delete a reserved job from the queue.
Migrate the delayed jobs that are ready to the regular queue.
Get the expiration time in seconds.
Set the expiration time in seconds.
Details
mixed
laterOn(
string $queue,
DateTime|int $delay,
string $job,
mixed $data = '')
Push a new job onto the queue after a delay.
mixed
bulk(
array $jobs,
mixed $data = '',
string $queue = null)
Push an array of jobs onto the queue.
at line line 49
void
__construct(
Database $redis,
string $default = 'default',
string $connection = null)
Create a new Redis queue instance.
at line line 64
mixed
push(
string $job,
mixed $data = '',
string $queue = null)
Push a new job onto the queue.
at line line 77
mixed
pushRaw(
string $payload,
string $queue = null,
array $options = array())
Push a raw payload onto the queue.
at line line 93
mixed
later(
DateTime|int $delay,
string $job,
mixed $data = '',
string $queue = null)
Push a new job onto the queue after a delay.
at line line 113
void
release(
string $queue,
string $payload,
int $delay,
int $attempts)
Release a reserved job back onto the queue.
at line line 152
void
deleteReserved(
string $queue,
string $job)
Delete a reserved job from the queue.
at line line 177
void
migrateExpiredJobs(
string $from,
string $to)
Migrate the delayed jobs that are ready to the regular queue.