Predis\Collection\Iterator\CursorBasedIterator::getScanOptions PHP Method

getScanOptions() protected method

Returns an array of options for the SCAN command.
protected getScanOptions ( ) : array
return array
    protected function getScanOptions()
    {
        $options = array();
        if (strlen($this->match) > 0) {
            $options['MATCH'] = $this->match;
        }
        if ($this->count > 0) {
            $options['COUNT'] = $this->count;
        }
        return $options;
    }