Predis\Cluster\ClusterStrategy::getKeyFromAllArguments PHP 메소드

getKeyFromAllArguments() 보호된 메소드

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