示例#1
0
文件: PredisTest.php 项目: gmo/cache
 /**
  * @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));
 }
示例#2
0
 /**
  * {@inheritDoc}
  */
 public function rpop($key)
 {
     return $this->predis->rpop($key);
 }