Example #1
0
 public function test_zAdd()
 {
     $this->assertEquals('zadd k 101 m', $this->redis->zAdd('k', 101, 'm'));
     $this->assertEquals('zadd k 101 m 102 m2', $this->redis->zAdd('k', 101, 'm', 102, 'm2'));
     $this->assertEquals('zadd k 101 m 102 m2', $this->redis->zAdd('k', array(101 => 'm', 102 => 'm2')));
 }