zscan() public method

public zscan ( integer &$Iterator, string $field, string $pattern = null, $count = null ) : boolean | Array
$Iterator integer
$field string
$pattern string
return boolean | Array | Array
Ejemplo n.º 1
0
 public function testZscan()
 {
     $this->credis->zadd('sortedset', 0, 'name');
     $this->credis->zadd('sortedset', 1, 'age');
     $iterator = null;
     $result = $this->credis->zscan($iterator, 'sortedset', 'n*');
     $this->assertEquals($iterator, 0);
     $this->assertEquals($result, ['name' => '0']);
 }