packages/client/lib/commands/INFO.ts
import { CommandParser } from '../client/parser';
import { RedisArgument, VerbatimStringReply, Command } from '../RESP/types';
export default {
NOT_KEYED_COMMAND: true,
IS_READ_ONLY: true,
parseCommand(parser: CommandParser, section?: RedisArgument) {
parser.push('INFO');
if (section) {
parser.push(section);
}
},
transformReply: undefined as unknown as () => VerbatimStringReply
} as const satisfies Command;