技术文章 > 后端开发 > php教程
PHP 使用 Redis 来做队列服务
redis = $redis; $this->key = $key; } public function pop() { return $this->redis->lPop($this->key); // 左边出 } public function push($task) { return $this->redis->rPush($this->key, $task); // 右边入 }}
已抢66131个
已抢34289个
已抢19063个