Example #1
0
 public function test_sAdd()
 {
     $this->assertEquals('sadd set v', $this->redis->sAdd('set', 'v'));
     $this->assertEquals('sadd set v v1', $this->redis->sAdd('set', 'v', 'v1'));
     $this->assertEquals('sadd set v v1', $this->redis->sAdd('set', array('v', 'v1')));
 }