src/Replication/ReplicationStrategy.php
protected function isGeoradiusReadOnly(CommandInterface $command)
    {
        $arguments = $command->getArguments();
        $argc = count($arguments);
        $startIndex = $command->getId() === 'GEORADIUS' ? 5 : 4;

        if ($argc > $startIndex) {
            for ($i = $startIndex; $i < $argc; ++$i) {
                $argument = strtoupper($arguments[$i]);
                if ($argument === 'STORE' || $argument === 'STOREDIST') {
                    return false;
                }
            }
        }

        return true;
    }
protected function isGeoradiusReadOnly(CommandInterface $command)
    {
        $arguments = $command->getArguments();
        $argc = count($arguments);
        $startIndex = $command->getId() === 'GEORADIUS' ? 5 : 4;

        if ($argc > $startIndex) {
            for ($i = $startIndex; $i < $argc; ++$i) {
                $argument = strtoupper($arguments[$i]);
                if ($argument === 'STORE' || $argument === 'STOREDIST') {
                    return false;
                }
            }
        }

        return true;
    }
protected function isGeoradiusReadOnly ( CommandInterface $ command ) { $ arguments = $ command -> getArguments ( ) ; $ argc = count ( $ arguments ) ; $ startIndex = $ command -> getId ( ) === 'GEORADIUS' ? 5 : 4 ; if ( $ argc > $ startIndex ) { for ( $ i = $ startIndex ; $ i < $ argc ; ++ $ i ) { $ argument = strtoupper ( $ arguments [ $ i ] ) ; if ( $ argument === 'STORE' || $ argument === 'STOREDIST' ) { return false ; } } } return true ; }
Checks if a GEORADIUS command is a readable operation by parsing the
arguments array of the specified commad instance.

@param CommandInterface $command Command instance.

@return bool
Checks if a GEORADIUS command is a readable operation by parsing the arguments array of the specified commad instance .