Predis\Command\Processor\KeyPrefixProcessor::all PHP Метод

all() публичный статический Метод

Applies the specified prefix to all the arguments.
public static all ( Predis\Command\CommandInterface $command, string $prefix )
$command Predis\Command\CommandInterface Command instance.
$prefix string Prefix string.
    public static function all(CommandInterface $command, $prefix)
    {
        if ($arguments = $command->getArguments()) {
            foreach ($arguments as &$key) {
                $key = "{$prefix}{$key}";
            }
            $command->setRawArguments($arguments);
        }
    }