关于redis-queue

谁在喊我

队列使用的是文档上的webman/redis-queue,我看源码上有个command,redis-queue:consumer,好像是创建消费类的,请问这个是如何使用的啊

2165 2 0
2个回答

walkor

首先项目要装composer require webman/console

比如要创建一个名字为 send-mail 的消费者,执行命令php webman redis-queue:consumer send-mail将在app/queue/redis下生成一个SendMail.php的消费者文件

年代过于久远,无法发表回答
🔝