如何使用NODEJS+REDIS开发一个消息队列

2025-04-06 20:47:25
推荐回答(1个)
回答1:

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