sscan() публичный Метод

public sscan ( integer &$Iterator, string $field, string $pattern = null, $count = null ) : boolean | Array
$Iterator integer
$field string
$pattern string
Результат boolean | Array | Array
Пример #1
0
 public function testSscan()
 {
     $this->credis->sadd('set', 'name', 'Jack');
     $this->credis->sadd('set', 'age', '33');
     $iterator = null;
     $result = $this->credis->sscan($iterator, 'set', 'n*');
     $this->assertEquals($iterator, 0);
     $this->assertEquals($result, [0 => 'name']);
 }