-first commit
This commit is contained in:
30
node_modules/@redis/client/dist/lib/commands/HSETEX.d.ts
generated
vendored
Normal file
30
node_modules/@redis/client/dist/lib/commands/HSETEX.d.ts
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
import { CommandParser } from '../client/parser';
|
||||
import { NumberReply, RedisArgument } from '../RESP/types';
|
||||
export interface HSetExOptions {
|
||||
expiration?: {
|
||||
type: 'EX' | 'PX' | 'EXAT' | 'PXAT';
|
||||
value: number;
|
||||
} | {
|
||||
type: 'KEEPTTL';
|
||||
} | 'KEEPTTL';
|
||||
mode?: 'FNX' | 'FXX';
|
||||
}
|
||||
export type HashTypes = RedisArgument | number;
|
||||
type HSETEXObject = Record<string | number, HashTypes>;
|
||||
type HSETEXMap = Map<HashTypes, HashTypes>;
|
||||
type HSETEXTuples = Array<[HashTypes, HashTypes]> | Array<HashTypes>;
|
||||
declare const _default: {
|
||||
/**
|
||||
* Constructs the HSETEX command
|
||||
*
|
||||
* @param parser - The command parser
|
||||
* @param key - The key of the hash
|
||||
* @param fields - Object, Map, or Array of field-value pairs to set
|
||||
* @param options - Optional configuration for expiration and mode settings
|
||||
* @see https://redis.io/commands/hsetex/
|
||||
*/
|
||||
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, fields: HSETEXObject | HSETEXMap | HSETEXTuples, options?: HSetExOptions) => void;
|
||||
readonly transformReply: () => NumberReply<0 | 1>;
|
||||
};
|
||||
export default _default;
|
||||
//# sourceMappingURL=HSETEX.d.ts.map
|
||||
Reference in New Issue
Block a user