<?php

try {
    $redis = new RedisCluster(null, array(
        '127.0.0.1:1001',
        '127.0.0.1:1002',
        '127.0.0.1:1003',
    ));
} catch (RedisClusterException $e) {
    die("init redis fail:" . $e->getMessage());
}


$dataIndex = 10000;

$playerData = array(
    "sessionId" => "12312312"
);
for ($i = 0; $i < 10000; $i++)
{
    $dataIndex++;
    $key = "{2-1-".$dataIndex."}-Account-0";
    $redis->hMSet($key, $playerData);
}
echo "create 10000 player";

