## yiisoft/yii2消息队列
安装扩展包
php composer.phar require --prefer-dist yiisoft/yii2-queue
修改配置文件
console.php、web.php
bootstrap加入queue components加入
'queue'=> [
'class'=> /yii/queue/redis/Queue::class,
'redis'=>'redis',// Redis connection component or its config
'channel'=>'queue',// Queue channel key queue在redis中key的前缀
'as log'=> /yii/queue/LogBehavior::class,-
],
'redis'=>[
共有 0 条评论