scan() public method

public scan ( integer &$Iterator, string $pattern = null, $count = null ) : boolean | Array
$Iterator integer
$pattern string
return boolean | Array | Array
示例#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']);
 }