You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-10 11:43:01 +03:00
* [CAE-686] Added hash field expiration commands * [CAE-686] Improve HSETEX return type * [CAE-686] Minor pushTuples change, renamed HSETEX test * [CAE-686] Changed hsetex function signature for better consistency with other commands * [CAE-686] Fixed hsetex test * [CAE-686] Bumped docker version to 8.0-M05-pre, enabled and fixed tests
14 lines
564 B
TypeScript
14 lines
564 B
TypeScript
import { CommandParser } from '../client/parser';
|
|
import { RedisVariadicArgument } from './generic-transformers';
|
|
import { RedisArgument, ArrayReply, BlobStringReply, NullReply, Command } from '../RESP/types';
|
|
|
|
export default {
|
|
parseCommand(parser: CommandParser, key: RedisArgument, fields: RedisVariadicArgument) {
|
|
parser.push('HGETDEL');
|
|
parser.pushKey(key);
|
|
parser.push('FIELDS')
|
|
parser.pushVariadicWithLength(fields);
|
|
},
|
|
transformReply: undefined as unknown as () => ArrayReply<BlobStringReply | NullReply>
|
|
} as const satisfies Command;
|