Predis\Connection\Aggregate\RedisCluster::onMovedResponse PHP Метод

onMovedResponse() защищенный Метод

Handles -MOVED responses by executing again the command against the node indicated by the Redis response.
protected onMovedResponse ( Predis\Command\CommandInterface $command, string $details ) : mixed
$command Predis\Command\CommandInterface Command that generated the -MOVED response.
$details string Parameters of the -MOVED response.
Результат mixed
    protected function onMovedResponse(CommandInterface $command, $details)
    {
        list($slot, $connectionID) = explode(' ', $details, 2);
        if (!($connection = $this->getConnectionById($connectionID))) {
            $connection = $this->createConnection($connectionID);
        }
        if ($this->useClusterSlots) {
            $this->askSlotsMap($connection);
        }
        $this->move($connection, $slot);
        $response = $this->executeCommand($command);
        return $response;
    }