public function sscan($key, &$iterator, $pattern = null, $count = null)
    {
        if ((string)$iterator === '0') {
            return null;
        }
        $this->init();
        if ($this->actualDriver() === self::DRIVER_PREDIS) {
            $returned = $this->driver->sscan($key, $iterator, ['match' => $pattern, 'count' => $count]);
            $iterator = $returned[0];
            return $returned[1];
        }
        return $this->driver->sscan($key, $iterator, $pattern, $count);
    }
public function sscan($key, &$iterator, $pattern = null, $count = null)
    {
        if ((string)$iterator === '0') {
            return null;
        }
        $this->init();
        if ($this->actualDriver() === self::DRIVER_PREDIS) {
            $returned = $this->driver->sscan($key, $iterator, ['match' => $pattern, 'count' => $count]);
            $iterator = $returned[0];
            return $returned[1];
        }
        return $this->driver->sscan($key, $iterator, $pattern, $count);
    }
public function sscan ( $ key , & $ iterator , $ pattern = null , $ count = null ) { if ( ( string ) $ iterator === '0' ) { return null ; } $ this -> init ( ) ; if ( $ this -> actualDriver ( ) === self :: DRIVER_PREDIS ) { $ returned = $ this -> driver -> sscan ( $ key , $ iterator , [ 'match' => $ pattern , 'count' => $ count ] ) ; $ iterator = $ returned [ 0 ] ; return $ returned [ 1 ] ; } return $ this -> driver -> sscan ( $ key , $ iterator , $ pattern , $ count ) ; }
Incrementally iterate Set elements
@param string $key
@param mixed $iterator iterator / cursor, use $iterator = null for start scanning, when $iterator is changed to 0 or '0', scanning is finished
@param string $pattern pattern for member's values, use * as wild card
@param int $count
@return array|boolean|null list of found members, returns null if $iterator is 0 or '0'
Incrementally iterate Set elements