Exemplo n.º 1
0
 /**
  * @group redis-lists
  */
 public function testListLeftPop()
 {
     $this->assertNull($this->client->lpop('foo'));
     $this->client->rpush('foo', 'A', 'B', 'C');
     $this->assertSame('A', $this->client->lpop('foo'));
     $this->assertEquals(array('B', 'C'), $this->client->lrange('foo', 0, -1));
 }
Exemplo n.º 2
0
 /**
  * {@inheritDoc}
  */
 public function lpop($key)
 {
     return $this->predis->lpop($key);
 }