library/Rediska/Command/GetFromSortedSetByScore.php
public function create($key, $min, $max, $withScores = false, $limit = null, $offset = null, $revert = false)
    {
        if ($revert) {
            $this->_throwExceptionIfNotSupported('2.1.6');
        }
        
        $connection = $this->_rediska->getConnectionByKeyName($key);

        $command = array($revert ? 'ZREVRANGEBYSCORE' : 'ZRANGEBYSCORE',
                         $this->_rediska->getOption('namespace') . $key,
                         $revert ? $max : $min,
                         $revert ? $min : $max);

        if (!is_null($limit)) {
            if (is_null($offset)) {
                $offset = 0;
            }
            $command[] = 'LIMIT';
            $command[] = $offset;
            $command[] = $limit;
        }

        if ($withScores) {
            $this->_throwExceptionIfNotSupported('1.3.4');

            $command[] = 'WITHSCORES';
        }

        return new Rediska_Connection_Exec($connection, $command);
    }
public function create($key, $min, $max, $withScores = false, $limit = null, $offset = null, $revert = false)
    {
        if ($revert) {
            $this->_throwExceptionIfNotSupported('2.1.6');
        }
        
        $connection = $this->_rediska->getConnectionByKeyName($key);

        $command = array($revert ? 'ZREVRANGEBYSCORE' : 'ZRANGEBYSCORE',
                         $this->_rediska->getOption('namespace') . $key,
                         $revert ? $max : $min,
                         $revert ? $min : $max);

        if (!is_null($limit)) {
            if (is_null($offset)) {
                $offset = 0;
            }
            $command[] = 'LIMIT';
            $command[] = $offset;
            $command[] = $limit;
        }

        if ($withScores) {
            $this->_throwExceptionIfNotSupported('1.3.4');

            $command[] = 'WITHSCORES';
        }

        return new Rediska_Connection_Exec($connection, $command);
    }
Create command

@param string            $key        Key name
@param number            $min        Min score
@param number            $max        Max score
@param boolean[optional] $withScores Get with scores. For default is false
@param integer[optional] $limit      Limit. For default is no limit
@param integer[optional] $offset     Offset. For default is no offset
@param boolean[optional] $revert     Revert. For default is false
@return Rediska_Connection_Exec