Skip to content

full asynchronous queue based on swoole,redis,yield development

Notifications You must be signed in to change notification settings

Corzcode/swoole-redis-queue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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']);

About

full asynchronous queue based on swoole,redis,yield development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published