Beispiel #1
0
 public function testSRem()
 {
     $this->_client->sAdd('foo', 'bar');
     $this->assertSame(1, $this->_client->sCard('foo'));
     $this->_client->sRem('foo', 'bar');
     $this->assertSame(0, $this->_client->sCard('foo'));
 }
Beispiel #2
0
 /**
  * @param string $key
  * @param string $value
  */
 public function delete($key, $value)
 {
     $this->_redisClient->sRem($key, $value);
 }