Download the PHP package workerman/redis-queue without Composer
On this page you can find all versions of the php package workerman/redis-queue. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download workerman/redis-queue
More information about workerman/redis-queue
Files in workerman/redis-queue
Download workerman/redis-queue
More information about workerman/redis-queue
Files in workerman/redis-queue
Vendor workerman
Package redis-queue
Short Description Message queue system written in PHP based on workerman and backed by Redis.
License MIT
Homepage http://www.workerman.net
Package redis-queue
Short Description Message queue system written in PHP based on workerman and backed by Redis.
License MIT
Homepage http://www.workerman.net
Please rate this library. Is it a good library?
Informations about the package redis-queue
redis-queue
Message queue system written in PHP based on workerman and backed by Redis.
Install
Usage
test.php
Run with command php test.php start or php test.php start -d.
API
Client::__construct()Client::send()Client::subscribe()Client::unsubscribe()Client::onConsumeFailure()
__construct (string $address, [array $options])
Create an instance by $address and $options.
-
$addressfor exampleredis://ip:6379. $optionsis the client connection options. Defaults:auth: default ''db: default 0retry_seconds: Retry interval after consumption failuremax_attempts: Maximum number of retries after consumption failure
send(String $queue, Mixed $data, [int $delay=0])
Send a message to a queue
$queueis the queue to publish to,String$datais the message to publish,Mixed$delayis delay seconds for delayed consumption,Int
subscribe(mixed $queue, callable $callback)
Subscribe to a queue or queues
$queueis aStringqueue or anArraywhich has as keys the queue name to subscribe.$callback-function (Mixed $data),$datais the data sent bysend($queue, $data).
unsubscribe(mixed $queue)
Unsubscribe from a queue or queues
onConsumeFailure(callable $callback)
When consumption fails onConsumeFailure is triggered.
$callback-function (\Throwable $exception, array $package),$packagecontains information such as data queue attempts
All versions of redis-queue with dependencies
PHP Build Version
Package Version
The package workerman/redis-queue contains the following files
Loading the files please wait ...