Download the PHP package xiaolin/swoole-queue without Composer
On this page you can find all versions of the php package xiaolin/swoole-queue. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package swoole-queue
x-swoole-queue
执行测试
php run tests/queue.php
vendor/bin/phpunit
使用
class TestQueue extends Task
{
// 消息队列Redis键值 list lpush添加队列
protected $queueKey = 'test:queue:queue';
// 延时消息队列的Redis键值 zset
protected $delayKey = 'test:queue:delay';
// pid地址
protected $pidPath = TESTS_PATH . '/queue.pid';
public $file = TESTS_PATH . '/test.cache';
/**
* @param $recv
* @return mixed|void
*/
protected function handle($recv)
{
File::getInstance()->put($this->file, 'upgrade');
}
}
$queue = new TestQueue();
$queue->setRedisConfig(127.0.0.1, 'xiaolin', 1, 8366)
->run();
$this->redis->lPush('test:queue:queue', 'xxxx');
All versions of swoole-queue with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
ext-swoole Version >=1.10
phalcon/dd Version ^1.1
predis/predis Version ^1.1
psr/log Version ^1.0
ext-swoole Version >=1.10
phalcon/dd Version ^1.1
predis/predis Version ^1.1
psr/log Version ^1.0
The package xiaolin/swoole-queue contains the following files
Loading the files please wait ....