Credis_Client::scan PHP Method

scan() public method

public scan ( integer &$Iterator, string $pattern = null, $count = null ) : boolean | Array
$Iterator integer
$pattern string
return boolean | Array | Array
    public function scan(&$Iterator, $pattern = null, $count = null)
    {
        return $this->__call('scan', array(&$Iterator, $pattern, $count));
    }

Usage Example

Esempio n. 1
0
 public function testscan()
 {
     $this->credis->set('name', 'Jack');
     $this->credis->set('age', '33');
     $iterator = null;
     $result = $this->credis->scan($iterator, 'n*');
     $this->assertEquals($iterator, 0);
     $this->assertEquals($result, ['name']);
 }