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

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

Applies the specified prefix to the keys of Z[INTERSECTION|UNION]STORE.
public static zsetStore ( Predis\Command\CommandInterface $command, string $prefix )
$command Predis\Command\CommandInterface Command instance.
$prefix string Prefix string.
    public static function zsetStore(CommandInterface $command, $prefix)
    {
        if ($arguments = $command->getArguments()) {
            $arguments[0] = "{$prefix}{$arguments[0]}";
            $length = (int) $arguments[1] + 2;
            for ($i = 2; $i < $length; ++$i) {
                $arguments[$i] = "{$prefix}{$arguments[$i]}";
            }
            $command->setRawArguments($arguments);
        }
    }