Credis_Client::zscan PHP Method

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
    public function zscan(&$Iterator, $field, $pattern = null, $count = null)
    {
        return $this->__call('zscan', array($field, &$Iterator, $pattern, $count));
    }

Usage Example

Esempio 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']);
 }