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

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

Applies the specified prefix to the key of a MIGRATE command.
public static migrate ( Predis\Command\CommandInterface $command, string $prefix )
$command Predis\Command\CommandInterface Command instance.
$prefix string Prefix string.
    public static function migrate(CommandInterface $command, $prefix)
    {
        if ($arguments = $command->getArguments()) {
            $arguments[2] = "{$prefix}{$arguments[2]}";
            $command->setRawArguments($arguments);
        }
    }