src/Redis/Cluster/Native.php
protected function onMovedResponse(string $command, array $args, string $details)
    {
        [$slot, $connectionID] = \explode(' ', $details, 2);
        if (!$connection = $this->getConnectionById($connectionID)) {
            $connection = $this->createConnection($connectionID);
        }

        $this->askSlotsMap($connection);
        $this->move($connection, $slot);

        return $this->execute($command, $args);
    }
protected function onMovedResponse(string $command, array $args, string $details)
    {
        [$slot, $connectionID] = \explode(' ', $details, 2);
        if (!$connection = $this->getConnectionById($connectionID)) {
            $connection = $this->createConnection($connectionID);
        }

        $this->askSlotsMap($connection);
        $this->move($connection, $slot);

        return $this->execute($command, $args);
    }
protected function onMovedResponse ( string $ command , array $ args , string $ details ) { [ $ slot , $ connectionID ] = \ explode ( ' ' , $ details , 2 ) ; if ( ! $ connection = $ this -> getConnectionById ( $ connectionID ) ) { $ connection = $ this -> createConnection ( $ connectionID ) ; } $ this -> askSlotsMap ( $ connection ) ; $ this -> move ( $ connection , $ slot ) ; return $ this -> execute ( $ command , $ args ) ; }
Handles -MOVED responses by executing again the command against the node
indicated by the Redis response.

@param string $command Command that generated the -MOVED response.
@param array  $args
@param string $details Parameters of the -MOVED response.

@return mixed
@throws RedisException
Handles - MOVED responses by executing again the command against the node indicated by the Redis response .