packages/client/lib/commands/SADD.ts
import { CommandParser } from '../client/parser';
import { RedisArgument, NumberReply, Command } from '../RESP/types';
import { RedisVariadicArgument } from './generic-transformers';
export default {
parseCommand(parser: CommandParser, key: RedisArgument, members: RedisVariadicArgument) {
parser.push('SADD');
parser.pushKey(key);
parser.pushVariadic(members);
},
transformReply: undefined as unknown as () => NumberReply
} as const satisfies Command;