예제 #1
0
 public function add_rooms()
 {
     $redis = new redis();
     $redis->connect(REDIS_HOST, REDIS_PORT);
     for ($i = 1000; $i < 2000; $i++) {
         $redis->zAdd("rooms_test_100", rand(50000, 100000), $i);
     }
     echo "##################";
 }