$res = Redis::pipeline(function($pipe) use($params) { for ($i = 0; $i < 1000; $i++) { $pipe->get("key:$i", $i); } });
pipeline和multi的区别: