Example #1
0
 /**
  * @group redis-lists
  */
 public function testListRightPop()
 {
     $this->assertNull($this->client->rpop('foo'));
     $this->client->rpush('foo', 'A', 'B', 'C');
     $this->assertSame('C', $this->client->rpop('foo'));
     $this->assertEquals(array('A', 'B'), $this->client->lrange('foo', 0, -1));
 }
Example #2
0
 /**
  * {@inheritDoc}
  */
 public function rpop($key)
 {
     return $this->predis->rpop($key);
 }