Predis\Cluster\ClusterStrategy::getKeyFromFirstArgument PHP Method

getKeyFromFirstArgument() protected method

Extracts the key from the first argument of a command instance.
protected getKeyFromFirstArgument ( Predis\Command\CommandInterface $command ) : string
$command Predis\Command\CommandInterface Command instance.
return string
    protected function getKeyFromFirstArgument(CommandInterface $command)
    {
        return $command->getArgument(0);
    }