Predis\Cluster\ClusterStrategy::getKeyFromAllArguments PHP Méthode

getKeyFromAllArguments() protected méthode

Extracts the key from a command with multiple keys only when all keys in the arguments array produce the same hash.
protected getKeyFromAllArguments ( Predis\Command\CommandInterface $command ) : string | null
$command Predis\Command\CommandInterface Command instance.
Résultat string | null
    protected function getKeyFromAllArguments(CommandInterface $command)
    {
        $arguments = $command->getArguments();
        if ($this->checkSameSlotForKeys($arguments)) {
            return $arguments[0];
        }
    }