Predis\Command\Processor\KeyPrefixProcessor::first PHP 메소드

first() 공개 정적인 메소드

Applies the specified prefix only the first argument.
public static first ( Predis\Command\CommandInterface $command, string $prefix )
$command Predis\Command\CommandInterface Command instance.
$prefix string Prefix string.
    public static function first(CommandInterface $command, $prefix)
    {
        if ($arguments = $command->getArguments()) {
            $arguments[0] = "{$prefix}{$arguments[0]}";
            $command->setRawArguments($arguments);
        }
    }