Exemple #1
0
 /**
  * {@inheritDoc}
  */
 public function llen($key)
 {
     return $this->predis->llen($key);
 }
Exemple #2
0
 /**
  * @group redis-lists
  */
 public function testListLength()
 {
     $this->assertSame(0, $this->client->llen('foo'));
     $this->client->rpush('foo', 'A', 'B', 'C');
     $this->assertSame(3, $this->client->llen('foo'));
 }