Predis\Cluster\ClusterStrategy::getKeyFromAllArguments PHP Method

getKeyFromAllArguments() protected method

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.
return string | null
    protected function getKeyFromAllArguments(CommandInterface $command)
    {
        $arguments = $command->getArguments();
        if ($this->checkSameSlotForKeys($arguments)) {
            return $arguments[0];
        }
    }