Predis\Connection\Cluster\RedisCluster::onAskResponse PHP Метод

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

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