Ejemplo 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));
 }
Ejemplo n.º 2
0
 /**
  * {@inheritDoc}
  */
 public function lpop($key)
 {
     return $this->predis->lpop($key);
 }