/**
* Applies the specified prefix to the keys of Z[INTERSECTION|UNION]STORE.
*
* @param CommandInterface $command Command instance.
* @param string $prefix 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);
}
}