You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-03 04:01:40 +03:00
17 lines
607 B
TypeScript
17 lines
607 B
TypeScript
import { RedisArgument, TuplesReply, ArrayReply, BlobStringReply, NumberReply, Command } from '@redis/client/dist/lib/RESP/types';
|
|
import { CommandParser } from '@redis/client/dist/lib/client/parser';
|
|
|
|
type ConfigItemReply = TuplesReply<[
|
|
configKey: BlobStringReply,
|
|
value: NumberReply
|
|
]>;
|
|
|
|
export default {
|
|
NOT_KEYED_COMMAND: true,
|
|
IS_READ_ONLY: true,
|
|
parseCommand(parser: CommandParser, configKey: RedisArgument) {
|
|
parser.push('GRAPH.CONFIG', 'GET', configKey);
|
|
},
|
|
transformReply: undefined as unknown as () => ConfigItemReply | ArrayReply<ConfigItemReply>
|
|
} as const satisfies Command;
|