// hMSet // 3.4 sec bench(function($redis, $target){ return $redis->hMSet("a", $target); }); // foreach($arr){set} // 30 sec bench(function($redis, $target){ $res = true; foreach($target as $key => $value) { $res = ($res && $redis->hSet("a", $key, $value)); } return $res; }); // Redis::MULTI // 33 sec bench(function($redis, $target){ $multi = $redis->multi(); foreach($target as $key => $value) { $