php 用 redis做队列 运行过程是什么样的

2025-04-05 18:24:04
推荐回答(1个)
回答(1):

redis实现消息队列很简单:
$this->redis->rPush($key, $val); // 右边入
$this->redis->lPop($key); // 左边出