24 lines
989 B
TypeScript
24 lines
989 B
TypeScript
import { CommandParser } from '../client/parser';
|
|
import { RedisVariadicArgument } from './generic-transformers';
|
|
import { ArrayReply, BlobStringReply, NullReply, RedisArgument } from '../RESP/types';
|
|
export interface HGetExOptions {
|
|
expiration?: {
|
|
type: 'EX' | 'PX' | 'EXAT' | 'PXAT';
|
|
value: number;
|
|
} | {
|
|
type: 'PERSIST';
|
|
} | 'PERSIST';
|
|
}
|
|
declare const _default: {
|
|
/**
|
|
* Gets the values of the specified fields in a hash and optionally sets their expiration
|
|
* @param parser - The Redis command parser
|
|
* @param key - Key of the hash
|
|
* @param fields - Fields to get values from
|
|
* @param options - Options for setting expiration
|
|
*/
|
|
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, fields: RedisVariadicArgument, options?: HGetExOptions) => void;
|
|
readonly transformReply: () => ArrayReply<BlobStringReply | NullReply>;
|
|
};
|
|
export default _default;
|
|
//# sourceMappingURL=HGETEX.d.ts.map
|