Beispiel #1
0
 public function testZRem()
 {
     $key = 'foo';
     $this->_client->zAdd($key, 1, 'foo');
     $this->_client->zAdd($key, 1.5, 'bar');
     $this->_client->zAdd($key, 2, 'foobar');
     $this->assertSame(array('foo', 'bar', 'foobar'), $this->_client->zRangeByScore($key, '1', '2'));
     $this->_client->zRem($key, 'bar');
     $this->assertSame(array('foo', 'foobar'), $this->_client->zRangeByScore($key, '1', '2'));
 }