packages/client/lib/commands/HGET.ts
import { CommandParser } from '../client/parser';
import { RedisArgument, BlobStringReply, NullReply, Command } from '../RESP/types';
export default {
CACHEABLE: true,
IS_READ_ONLY: true,
parseCommand(parser: CommandParser, key: RedisArgument, field: RedisArgument) {
parser.push('HGET');
parser.pushKey(key);
parser.push(field);
},
transformReply: undefined as unknown as () => BlobStringReply | NullReply
} as const satisfies Command;