src/Command/Processor/KeyPrefixProcessor.php
public static function georadius(CommandInterface $command, $prefix)
    {
        if ($arguments = $command->getArguments()) {
            $arguments[0] = "$prefix{$arguments[0]}";
            $startIndex = $command->getId() === 'GEORADIUS' ? 5 : 4;

            if (($count = count($arguments)) > $startIndex) {
                for ($i = $startIndex; $i < $count; ++$i) {
                    switch (strtoupper($arguments[$i])) {
                        case 'STORE':
                        case 'STOREDIST':
                            $arguments[$i] = "$prefix{$arguments[++$i]}";
                            break;

                    }
                }
            }

            $command->setRawArguments($arguments);
        }
    }
public static function georadius(CommandInterface $command, $prefix)
    {
        if ($arguments = $command->getArguments()) {
            $arguments[0] = "$prefix{$arguments[0]}";
            $startIndex = $command->getId() === 'GEORADIUS' ? 5 : 4;

            if (($count = count($arguments)) > $startIndex) {
                for ($i = $startIndex; $i < $count; ++$i) {
                    switch (strtoupper($arguments[$i])) {
                        case 'STORE':
                        case 'STOREDIST':
                            $arguments[$i] = "$prefix{$arguments[++$i]}";
                            break;

                    }
                }
            }

            $command->setRawArguments($arguments);
        }
    }
public static function georadius ( CommandInterface $ command , $ prefix ) { if ( $ arguments = $ command -> getArguments ( ) ) { $ arguments [ 0 ] = "$prefix{$arguments[0]}" ; $ startIndex = $ command -> getId ( ) === 'GEORADIUS' ? 5 : 4 ; if ( ( $ count = count ( $ arguments ) ) > $ startIndex ) { for ( $ i = $ startIndex ; $ i < $ count ; ++ $ i ) { switch ( strtoupper ( $ arguments [ $ i ] ) ) { case 'STORE' : case 'STOREDIST' : $ arguments [ $ i ] = "$prefix{$arguments[++$i]}" ; break ; } } } $ command -> setRawArguments ( $ arguments ) ; } }
Applies the specified prefix to the key of a GEORADIUS command.

@param CommandInterface $command Command instance.
@param string           $prefix  Prefix string.
Applies the specified prefix to the key of a GEORADIUS command .