search

Home  >  Q&A  >  body text

redis lpush >10000 条数据

如题:
没有batch操作吗?
自己封装接口, for循环?

淡淡烟草味淡淡烟草味2793 days ago679

reply all(2)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-27 09:05:01

    redis pipeline

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-04-27 09:05:01

    $pipe = $client->multi(Redis::PIPELINE);
            foreach($uids as $i){
                $pipe->rPush($key_uid, $i);
            }
            $pipe->exec();
    

    reply
    0
  • Cancelreply