php-queue 是一个基于php的包,目前仅支持redis存储(对于有其他存储需求的,可根据接口自行开发实现).
1、安装redis2.6.0以上
2、安装composer
1、克隆本项目
2、cd 到项目目录,composer install
开启队列:php art worker:start:1 --queue=send1,send2 --tries=3 --sleep=3
关闭队列:php art worker:stop
重新执行失败队列:php art worker:retry --queue=send1,send2 --tries=3 --sleep
├── bin // art命令
├── example // 示例
│ ├── Queue.php // 队列任务添加示例
├── src
| ├── Bootstrap
......