Predis\Command\Processor\KeyPrefixProcessor::first PHP Method

first() public static method

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);
        }
    }