-first commit

This commit is contained in:
2025-11-11 12:36:06 +07:00
commit b99c214434
5683 changed files with 713336 additions and 0 deletions

View 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