Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 629 Bytes

README.md

File metadata and controls

30 lines (25 loc) · 629 Bytes

swoole-redis-queue

Supported PHP versions: >=5.5 Supported SWOOLE versions: >=1.8.10

基于redis使用swoole异步redis和yield开发的全异步队列

#启动方式


php server.php

#守护方式启动


./cli.sh start
./cli.sh stop
./cli.sh restart

#客户端使用


$mq = MqClient::getInstance(['ip' => '127.0.0.1', 'port' => 9570]);
$mq->setQueue('sms');
$mq->push('asdfasdg');
$r = $mq->pop();
$mq->ack($r['id']);