NodeRedis/node-redis

View on GitHub
packages/graph/lib/commands/CONFIG_SET.ts

Summary

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

export default {
  NOT_KEYED_COMMAND: true,
  IS_READ_ONLY: false,
  parseCommand(parser: CommandParser, configKey: RedisArgument, value: number) {
    parser.push('GRAPH.CONFIG', 'SET', configKey, value.toString());
  },
  transformReply: undefined as unknown as () => SimpleStringReply<'OK'>
} as const satisfies Command;