NodeRedis/node-redis

View on GitHub
packages/client/lib/sentinel/commands/SENTINEL_MONITOR.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { CommandParser } from '../../client/parser';
import { RedisArgument, SimpleStringReply, Command } from '../../RESP/types';

export default {
  parseCommand(parser: CommandParser, dbname: RedisArgument, host: RedisArgument, port: RedisArgument, quorum: RedisArgument) {
    parser.push('SENTINEL', 'MONITOR', dbname, host, port, quorum);
  },
  transformReply: undefined as unknown as () => SimpleStringReply<'OK'> 
} as const satisfies Command;