1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-10 11:43:01 +03:00
Files
node-redis/packages/client/lib/commands/PING.ts
Leibale 331e390bef WIP
2023-05-03 17:29:36 -04:00

16 lines
412 B
TypeScript

import { RedisArgument, SimpleStringReply, Command } from '../RESP/types';
export default {
FIRST_KEY_INDEX: undefined,
IS_READ_ONLY: true,
transformArguments(message?: RedisArgument) {
const args: Array<RedisArgument> = ['PING'];
if (message) {
args.push(message);
}
return args;
},
transformReply: undefined as unknown as () => SimpleStringReply
} as const satisfies Command;