Exemple #1
0
 /**
  * @group redis-lists
  */
 public function testListRightPushExists()
 {
     $this->assertEquals(0, $this->client->rpushx('foo', 'bar'));
     $this->assertFalse($this->client->exists('foo'));
     $this->client->rpush('foo', 'hello');
     $this->assertEquals(2, $this->client->rpushx('foo', 'world'));
     $this->assertEquals(array('hello', 'world'), $this->client->lrange('foo', 0, -1));
 }