@upstash/redis 1.36.1 → 1.36.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{chunk-LLI2WIYN.mjs → chunk-Q3SWX4BB.mjs} +164 -25
- package/cloudflare.d.mts +2 -2
- package/cloudflare.d.ts +2 -2
- package/cloudflare.js +164 -25
- package/cloudflare.mjs +1 -1
- package/fastly.d.mts +2 -2
- package/fastly.d.ts +2 -2
- package/fastly.js +164 -25
- package/fastly.mjs +1 -1
- package/nodejs.d.mts +2 -2
- package/nodejs.d.ts +2 -2
- package/nodejs.js +164 -25
- package/nodejs.mjs +1 -1
- package/package.json +1 -1
- package/{zmscore-0SAuWM0q.d.mts → zmscore-BjNXmrug.d.mts} +340 -2
- package/{zmscore-0SAuWM0q.d.ts → zmscore-BjNXmrug.d.ts} +340 -2
|
@@ -317,6 +317,14 @@ declare class ExpireCommand extends Command<"0" | "1", 0 | 1> {
|
|
|
317
317
|
constructor(cmd: [key: string, seconds: number, option?: ExpireOption], opts?: CommandOptions<"0" | "1", 0 | 1>);
|
|
318
318
|
}
|
|
319
319
|
|
|
320
|
+
type ClientSetInfoAttribute = "LIB-NAME" | "lib-name" | "LIB-VER" | "lib-ver";
|
|
321
|
+
/**
|
|
322
|
+
* @see https://redis.io/commands/client-setinfo
|
|
323
|
+
*/
|
|
324
|
+
declare class ClientSetInfoCommand extends Command<string, string> {
|
|
325
|
+
constructor([attribute, value]: [attribute: ClientSetInfoAttribute, value: string], opts?: CommandOptions<string, string>);
|
|
326
|
+
}
|
|
327
|
+
|
|
320
328
|
type FunctionListArgs = {
|
|
321
329
|
/**
|
|
322
330
|
* Pattern for matching library names. Supports glob patterns.
|
|
@@ -394,6 +402,8 @@ declare class BitFieldCommand<T = Promise<number[]>> {
|
|
|
394
402
|
declare class BitOpCommand extends Command<number, number> {
|
|
395
403
|
constructor(cmd: [op: "and" | "or" | "xor", destinationKey: string, ...sourceKeys: string[]], opts?: CommandOptions<number, number>);
|
|
396
404
|
constructor(cmd: [op: "not", destinationKey: string, sourceKey: string], opts?: CommandOptions<number, number>);
|
|
405
|
+
constructor(cmd: [op: "diff" | "diff1" | "andor", destinationKey: string, x: string, ...y: string[]], opts?: CommandOptions<number, number>);
|
|
406
|
+
constructor(cmd: [op: "one", destinationKey: string, ...sourceKeys: string[]], opts?: CommandOptions<number, number>);
|
|
397
407
|
}
|
|
398
408
|
|
|
399
409
|
/**
|
|
@@ -799,6 +809,71 @@ declare class HGetAllCommand<TData extends Record<string, unknown>> extends Comm
|
|
|
799
809
|
constructor(cmd: [key: string], opts?: CommandOptions<unknown | null, TData | null>);
|
|
800
810
|
}
|
|
801
811
|
|
|
812
|
+
/**
|
|
813
|
+
* HGETDEL returns the values of the specified fields and then atomically deletes them from the hash
|
|
814
|
+
* The field values are returned as an object like this:
|
|
815
|
+
* ```ts
|
|
816
|
+
* {[fieldName: string]: T | null}
|
|
817
|
+
* ```
|
|
818
|
+
*
|
|
819
|
+
* In case all fields are non-existent or the hash doesn't exist, `null` is returned
|
|
820
|
+
*
|
|
821
|
+
* @see https://redis.io/commands/hgetdel
|
|
822
|
+
*/
|
|
823
|
+
declare class HGetDelCommand<TData extends Record<string, unknown>> extends Command<(string | null)[], TData | null> {
|
|
824
|
+
constructor([key, ...fields]: [key: string, ...fields: (string | number)[]], opts?: CommandOptions<(string | null)[], TData | null>);
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
type HGetExCommandOptions = {
|
|
828
|
+
ex: number;
|
|
829
|
+
px?: never;
|
|
830
|
+
exat?: never;
|
|
831
|
+
pxat?: never;
|
|
832
|
+
persist?: never;
|
|
833
|
+
} | {
|
|
834
|
+
ex?: never;
|
|
835
|
+
px: number;
|
|
836
|
+
exat?: never;
|
|
837
|
+
pxat?: never;
|
|
838
|
+
persist?: never;
|
|
839
|
+
} | {
|
|
840
|
+
ex?: never;
|
|
841
|
+
px?: never;
|
|
842
|
+
exat: number;
|
|
843
|
+
pxat?: never;
|
|
844
|
+
persist?: never;
|
|
845
|
+
} | {
|
|
846
|
+
ex?: never;
|
|
847
|
+
px?: never;
|
|
848
|
+
exat?: never;
|
|
849
|
+
pxat: number;
|
|
850
|
+
persist?: never;
|
|
851
|
+
} | {
|
|
852
|
+
ex?: never;
|
|
853
|
+
px?: never;
|
|
854
|
+
exat?: never;
|
|
855
|
+
pxat?: never;
|
|
856
|
+
persist: true;
|
|
857
|
+
};
|
|
858
|
+
/**
|
|
859
|
+
* HGETEX returns the values of the specified fields and optionally sets their expiration time or TTL
|
|
860
|
+
* The field values are returned as an object like this:
|
|
861
|
+
* ```ts
|
|
862
|
+
* {[fieldName: string]: T | null}
|
|
863
|
+
* ```
|
|
864
|
+
*
|
|
865
|
+
* In case all fields are non-existent or the hash doesn't exist, `null` is returned
|
|
866
|
+
*
|
|
867
|
+
* @see https://redis.io/commands/hgetex
|
|
868
|
+
*/
|
|
869
|
+
declare class HGetExCommand<TData extends Record<string, unknown>> extends Command<(string | null)[], TData | null> {
|
|
870
|
+
constructor([key, opts, ...fields]: [
|
|
871
|
+
key: string,
|
|
872
|
+
opts: HGetExCommandOptions,
|
|
873
|
+
...fields: (string | number)[]
|
|
874
|
+
], cmdOpts?: CommandOptions<(string | null)[], TData | null>);
|
|
875
|
+
}
|
|
876
|
+
|
|
802
877
|
/**
|
|
803
878
|
* @see https://redis.io/commands/hincrby
|
|
804
879
|
*/
|
|
@@ -911,6 +986,58 @@ declare class HSetCommand<TData> extends Command<number, number> {
|
|
|
911
986
|
constructor([key, kv]: [key: string, kv: Record<string, TData>], opts?: CommandOptions<number, number>);
|
|
912
987
|
}
|
|
913
988
|
|
|
989
|
+
type HSetExConditionalOptions = "FNX" | "fnx" | "FXX" | "fxx";
|
|
990
|
+
type HSetExExpirationOptions = {
|
|
991
|
+
ex: number;
|
|
992
|
+
px?: never;
|
|
993
|
+
exat?: never;
|
|
994
|
+
pxat?: never;
|
|
995
|
+
keepttl?: never;
|
|
996
|
+
} | {
|
|
997
|
+
ex?: never;
|
|
998
|
+
px: number;
|
|
999
|
+
exat?: never;
|
|
1000
|
+
pxat?: never;
|
|
1001
|
+
keepttl?: never;
|
|
1002
|
+
} | {
|
|
1003
|
+
ex?: never;
|
|
1004
|
+
px?: never;
|
|
1005
|
+
exat: number;
|
|
1006
|
+
pxat?: never;
|
|
1007
|
+
keepttl?: never;
|
|
1008
|
+
} | {
|
|
1009
|
+
ex?: never;
|
|
1010
|
+
px?: never;
|
|
1011
|
+
exat?: never;
|
|
1012
|
+
pxat: number;
|
|
1013
|
+
keepttl?: never;
|
|
1014
|
+
} | {
|
|
1015
|
+
ex?: never;
|
|
1016
|
+
px?: never;
|
|
1017
|
+
exat?: never;
|
|
1018
|
+
pxat?: never;
|
|
1019
|
+
keepttl: true;
|
|
1020
|
+
} | {
|
|
1021
|
+
ex?: never;
|
|
1022
|
+
px?: never;
|
|
1023
|
+
exat?: never;
|
|
1024
|
+
pxat?: never;
|
|
1025
|
+
keepttl?: never;
|
|
1026
|
+
};
|
|
1027
|
+
type HSetExCommandOptions = {
|
|
1028
|
+
conditional?: HSetExConditionalOptions;
|
|
1029
|
+
expiration?: HSetExExpirationOptions;
|
|
1030
|
+
};
|
|
1031
|
+
/**
|
|
1032
|
+
* HSETEX sets the specified fields with their values and optionally sets their expiration time or TTL
|
|
1033
|
+
* Returns 1 on success and 0 otherwise.
|
|
1034
|
+
*
|
|
1035
|
+
* @see https://redis.io/commands/hsetex
|
|
1036
|
+
*/
|
|
1037
|
+
declare class HSetExCommand<TData> extends Command<number, number> {
|
|
1038
|
+
constructor([key, opts, kv]: [key: string, opts: HSetExCommandOptions, kv: Record<string, TData>], cmdOpts?: CommandOptions<number, number>);
|
|
1039
|
+
}
|
|
1040
|
+
|
|
914
1041
|
/**
|
|
915
1042
|
* @see https://redis.io/commands/hsetnx
|
|
916
1043
|
*/
|
|
@@ -1574,6 +1701,14 @@ declare class UnlinkCommand extends Command<number, number> {
|
|
|
1574
1701
|
constructor(cmd: [...keys: string[]], opts?: CommandOptions<number, number>);
|
|
1575
1702
|
}
|
|
1576
1703
|
|
|
1704
|
+
type XAckDelOption = "KEEPREF" | "keepref" | "DELREF" | "delref" | "ACKED" | "acked";
|
|
1705
|
+
/**
|
|
1706
|
+
* @see https://redis.io/commands/xackdel
|
|
1707
|
+
*/
|
|
1708
|
+
declare class XAckDelCommand extends Command<number[], number[]> {
|
|
1709
|
+
constructor([key, group, opts, ...ids]: [key: string, group: string, opts: XAckDelOption, ...ids: string[]], cmdOpts?: CommandOptions<number[], number[]>);
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1577
1712
|
type XAddCommandOptions = {
|
|
1578
1713
|
nomkStream?: boolean;
|
|
1579
1714
|
trim?: ({
|
|
@@ -1592,16 +1727,29 @@ type XAddCommandOptions = {
|
|
|
1592
1727
|
};
|
|
1593
1728
|
/**
|
|
1594
1729
|
* @see https://redis.io/commands/xadd
|
|
1730
|
+
*
|
|
1731
|
+
* Stream ID formats:
|
|
1732
|
+
* - "*" - Fully automatic ID generation
|
|
1733
|
+
* - "<ms>-<seq>" - Explicit ID (e.g., "1526919030474-55")
|
|
1734
|
+
* - "<ms>-*" - Auto-generate sequence number for the given millisecond timestamp (Redis 8+)
|
|
1595
1735
|
*/
|
|
1596
1736
|
declare class XAddCommand extends Command<string, string> {
|
|
1597
1737
|
constructor([key, id, entries, opts]: [
|
|
1598
1738
|
key: string,
|
|
1599
|
-
id: "*" | string,
|
|
1739
|
+
id: "*" | `${number}-*` | string,
|
|
1600
1740
|
entries: Record<string, unknown>,
|
|
1601
1741
|
opts?: XAddCommandOptions
|
|
1602
1742
|
], commandOptions?: CommandOptions<string, string>);
|
|
1603
1743
|
}
|
|
1604
1744
|
|
|
1745
|
+
type XDelExOption = "KEEPREF" | "keepref" | "DELREF" | "delref" | "ACKED" | "acked";
|
|
1746
|
+
/**
|
|
1747
|
+
* @see https://redis.io/commands/xdelex
|
|
1748
|
+
*/
|
|
1749
|
+
declare class XDelExCommand extends Command<number[], number[]> {
|
|
1750
|
+
constructor([key, opts, ...ids]: [key: string, opts?: XDelExOption, ...ids: string[]], cmdOpts?: CommandOptions<number[], number[]>);
|
|
1751
|
+
}
|
|
1752
|
+
|
|
1605
1753
|
declare class XRangeCommand<TData extends Record<string, Record<string, unknown>>> extends Command<string[][], TData> {
|
|
1606
1754
|
constructor([key, start, end, count]: [key: string, start: string, end: string, count?: number], opts?: CommandOptions<unknown[], TData[]>);
|
|
1607
1755
|
}
|
|
@@ -2023,11 +2171,17 @@ declare class Pipeline<TCommands extends Command<any, any>[] = []> {
|
|
|
2023
2171
|
bitop: {
|
|
2024
2172
|
(op: "and" | "or" | "xor", destinationKey: string, sourceKey: string, ...sourceKeys: string[]): Pipeline<[...TCommands, BitOpCommand]>;
|
|
2025
2173
|
(op: "not", destinationKey: string, sourceKey: string): Pipeline<[...TCommands, BitOpCommand]>;
|
|
2174
|
+
(op: "diff" | "diff1" | "andor", destinationKey: string, x: string, ...y: string[]): Pipeline<[...TCommands, BitOpCommand]>;
|
|
2175
|
+
(op: "one", destinationKey: string, ...sourceKeys: string[]): Pipeline<[...TCommands, BitOpCommand]>;
|
|
2026
2176
|
};
|
|
2027
2177
|
/**
|
|
2028
2178
|
* @see https://redis.io/commands/bitpos
|
|
2029
2179
|
*/
|
|
2030
2180
|
bitpos: (key: string, bit: 0 | 1, start?: number | undefined, end?: number | undefined) => Pipeline<[...TCommands, Command<any, number>]>;
|
|
2181
|
+
/**
|
|
2182
|
+
* @see https://redis.io/commands/client-setinfo
|
|
2183
|
+
*/
|
|
2184
|
+
clientSetinfo: (attribute: ClientSetInfoAttribute, value: string) => Pipeline<[...TCommands, Command<any, string>]>;
|
|
2031
2185
|
/**
|
|
2032
2186
|
* @see https://redis.io/commands/copy
|
|
2033
2187
|
*/
|
|
@@ -2298,6 +2452,44 @@ declare class Pipeline<TCommands extends Command<any, any>[] = []> {
|
|
|
2298
2452
|
* @see https://redis.io/commands/hgetall
|
|
2299
2453
|
*/
|
|
2300
2454
|
hgetall: <TData extends Record<string, unknown>>(key: string) => Pipeline<[...TCommands, Command<any, TData | null>]>;
|
|
2455
|
+
/**
|
|
2456
|
+
* @see https://redis.io/commands/hgetdel
|
|
2457
|
+
*/
|
|
2458
|
+
hgetdel: <TData extends Record<string, unknown>>(key: string, ...fields: (string | number)[]) => Pipeline<[...TCommands, Command<any, TData | null>]>;
|
|
2459
|
+
/**
|
|
2460
|
+
* @see https://redis.io/commands/hgetex
|
|
2461
|
+
*/
|
|
2462
|
+
hgetex: <TData extends Record<string, unknown>>(key: string, opts: {
|
|
2463
|
+
ex: number;
|
|
2464
|
+
px?: never;
|
|
2465
|
+
exat?: never;
|
|
2466
|
+
pxat?: never;
|
|
2467
|
+
persist?: never;
|
|
2468
|
+
} | {
|
|
2469
|
+
ex?: never;
|
|
2470
|
+
px: number;
|
|
2471
|
+
exat?: never;
|
|
2472
|
+
pxat?: never;
|
|
2473
|
+
persist?: never;
|
|
2474
|
+
} | {
|
|
2475
|
+
ex?: never;
|
|
2476
|
+
px?: never;
|
|
2477
|
+
exat: number;
|
|
2478
|
+
pxat?: never;
|
|
2479
|
+
persist?: never;
|
|
2480
|
+
} | {
|
|
2481
|
+
ex?: never;
|
|
2482
|
+
px?: never;
|
|
2483
|
+
exat?: never;
|
|
2484
|
+
pxat: number;
|
|
2485
|
+
persist?: never;
|
|
2486
|
+
} | {
|
|
2487
|
+
ex?: never;
|
|
2488
|
+
px?: never;
|
|
2489
|
+
exat?: never;
|
|
2490
|
+
pxat?: never;
|
|
2491
|
+
persist: true;
|
|
2492
|
+
}, ...fields: (string | number)[]) => Pipeline<[...TCommands, Command<any, TData | null>]>;
|
|
2301
2493
|
/**
|
|
2302
2494
|
* @see https://redis.io/commands/hincrby
|
|
2303
2495
|
*/
|
|
@@ -2334,6 +2526,49 @@ declare class Pipeline<TCommands extends Command<any, any>[] = []> {
|
|
|
2334
2526
|
* @see https://redis.io/commands/hset
|
|
2335
2527
|
*/
|
|
2336
2528
|
hset: <TData>(key: string, kv: Record<string, TData>) => Pipeline<[...TCommands, Command<any, number>]>;
|
|
2529
|
+
/**
|
|
2530
|
+
* @see https://redis.io/commands/hsetex
|
|
2531
|
+
*/
|
|
2532
|
+
hsetex: <TData>(key: string, opts: {
|
|
2533
|
+
conditional?: "FNX" | "fnx" | "FXX" | "fxx";
|
|
2534
|
+
expiration?: {
|
|
2535
|
+
ex: number;
|
|
2536
|
+
px?: never;
|
|
2537
|
+
exat?: never;
|
|
2538
|
+
pxat?: never;
|
|
2539
|
+
keepttl?: never;
|
|
2540
|
+
} | {
|
|
2541
|
+
ex?: never;
|
|
2542
|
+
px: number;
|
|
2543
|
+
exat?: never;
|
|
2544
|
+
pxat?: never;
|
|
2545
|
+
keepttl?: never;
|
|
2546
|
+
} | {
|
|
2547
|
+
ex?: never;
|
|
2548
|
+
px?: never;
|
|
2549
|
+
exat: number;
|
|
2550
|
+
pxat?: never;
|
|
2551
|
+
keepttl?: never;
|
|
2552
|
+
} | {
|
|
2553
|
+
ex?: never;
|
|
2554
|
+
px?: never;
|
|
2555
|
+
exat?: never;
|
|
2556
|
+
pxat: number;
|
|
2557
|
+
keepttl?: never;
|
|
2558
|
+
} | {
|
|
2559
|
+
ex?: never;
|
|
2560
|
+
px?: never;
|
|
2561
|
+
exat?: never;
|
|
2562
|
+
pxat?: never;
|
|
2563
|
+
keepttl: true;
|
|
2564
|
+
} | {
|
|
2565
|
+
ex?: never;
|
|
2566
|
+
px?: never;
|
|
2567
|
+
exat?: never;
|
|
2568
|
+
pxat?: never;
|
|
2569
|
+
keepttl?: never;
|
|
2570
|
+
};
|
|
2571
|
+
}, kv: Record<string, TData>) => Pipeline<[...TCommands, Command<any, number>]>;
|
|
2337
2572
|
/**
|
|
2338
2573
|
* @see https://redis.io/commands/hsetnx
|
|
2339
2574
|
*/
|
|
@@ -2642,10 +2877,18 @@ declare class Pipeline<TCommands extends Command<any, any>[] = []> {
|
|
|
2642
2877
|
* @see https://redis.io/commands/xack
|
|
2643
2878
|
*/
|
|
2644
2879
|
xack: (key: string, group: string, id: string | string[]) => Pipeline<[...TCommands, Command<any, number>]>;
|
|
2880
|
+
/**
|
|
2881
|
+
* @see https://redis.io/commands/xackdel
|
|
2882
|
+
*/
|
|
2883
|
+
xackdel: (key: string, group: string, opts: "KEEPREF" | "keepref" | "DELREF" | "delref" | "ACKED" | "acked", ...ids: string[]) => Pipeline<[...TCommands, Command<any, number[]>]>;
|
|
2645
2884
|
/**
|
|
2646
2885
|
* @see https://redis.io/commands/xdel
|
|
2647
2886
|
*/
|
|
2648
2887
|
xdel: (key: string, ids: string | string[]) => Pipeline<[...TCommands, Command<any, number>]>;
|
|
2888
|
+
/**
|
|
2889
|
+
* @see https://redis.io/commands/xdelex
|
|
2890
|
+
*/
|
|
2891
|
+
xdelex: (key: string, opts?: ("KEEPREF" | "keepref" | "DELREF" | "delref" | "ACKED" | "acked") | undefined, ...ids: string[]) => Pipeline<[...TCommands, Command<any, number[]>]>;
|
|
2649
2892
|
/**
|
|
2650
2893
|
* @see https://redis.io/commands/xgroup
|
|
2651
2894
|
*/
|
|
@@ -3329,11 +3572,17 @@ declare class Redis {
|
|
|
3329
3572
|
bitop: {
|
|
3330
3573
|
(op: "and" | "or" | "xor", destinationKey: string, sourceKey: string, ...sourceKeys: string[]): Promise<number>;
|
|
3331
3574
|
(op: "not", destinationKey: string, sourceKey: string): Promise<number>;
|
|
3575
|
+
(op: "diff" | "diff1" | "andor", destinationKey: string, x: string, ...y: string[]): Promise<number>;
|
|
3576
|
+
(op: "one", destinationKey: string, ...sourceKeys: string[]): Promise<number>;
|
|
3332
3577
|
};
|
|
3333
3578
|
/**
|
|
3334
3579
|
* @see https://redis.io/commands/bitpos
|
|
3335
3580
|
*/
|
|
3336
3581
|
bitpos: (key: string, bit: 0 | 1, start?: number | undefined, end?: number | undefined) => Promise<number>;
|
|
3582
|
+
/**
|
|
3583
|
+
* @see https://redis.io/commands/client-setinfo
|
|
3584
|
+
*/
|
|
3585
|
+
clientSetinfo: (attribute: ClientSetInfoAttribute, value: string) => Promise<string>;
|
|
3337
3586
|
/**
|
|
3338
3587
|
* @see https://redis.io/commands/copy
|
|
3339
3588
|
*/
|
|
@@ -3604,6 +3853,44 @@ declare class Redis {
|
|
|
3604
3853
|
* @see https://redis.io/commands/hgetall
|
|
3605
3854
|
*/
|
|
3606
3855
|
hgetall: <TData extends Record<string, unknown>>(key: string) => Promise<TData | null>;
|
|
3856
|
+
/**
|
|
3857
|
+
* @see https://redis.io/commands/hgetdel
|
|
3858
|
+
*/
|
|
3859
|
+
hgetdel: <TData extends Record<string, unknown>>(key: string, ...fields: (string | number)[]) => Promise<TData | null>;
|
|
3860
|
+
/**
|
|
3861
|
+
* @see https://redis.io/commands/hgetex
|
|
3862
|
+
*/
|
|
3863
|
+
hgetex: <TData extends Record<string, unknown>>(key: string, opts: {
|
|
3864
|
+
ex: number;
|
|
3865
|
+
px?: never;
|
|
3866
|
+
exat?: never;
|
|
3867
|
+
pxat?: never;
|
|
3868
|
+
persist?: never;
|
|
3869
|
+
} | {
|
|
3870
|
+
ex?: never;
|
|
3871
|
+
px: number;
|
|
3872
|
+
exat?: never;
|
|
3873
|
+
pxat?: never;
|
|
3874
|
+
persist?: never;
|
|
3875
|
+
} | {
|
|
3876
|
+
ex?: never;
|
|
3877
|
+
px?: never;
|
|
3878
|
+
exat: number;
|
|
3879
|
+
pxat?: never;
|
|
3880
|
+
persist?: never;
|
|
3881
|
+
} | {
|
|
3882
|
+
ex?: never;
|
|
3883
|
+
px?: never;
|
|
3884
|
+
exat?: never;
|
|
3885
|
+
pxat: number;
|
|
3886
|
+
persist?: never;
|
|
3887
|
+
} | {
|
|
3888
|
+
ex?: never;
|
|
3889
|
+
px?: never;
|
|
3890
|
+
exat?: never;
|
|
3891
|
+
pxat?: never;
|
|
3892
|
+
persist: true;
|
|
3893
|
+
}, ...fields: (string | number)[]) => Promise<TData | null>;
|
|
3607
3894
|
/**
|
|
3608
3895
|
* @see https://redis.io/commands/hincrby
|
|
3609
3896
|
*/
|
|
@@ -3644,6 +3931,49 @@ declare class Redis {
|
|
|
3644
3931
|
* @see https://redis.io/commands/hset
|
|
3645
3932
|
*/
|
|
3646
3933
|
hset: <TData>(key: string, kv: Record<string, TData>) => Promise<number>;
|
|
3934
|
+
/**
|
|
3935
|
+
* @see https://redis.io/commands/hsetex
|
|
3936
|
+
*/
|
|
3937
|
+
hsetex: <TData>(key: string, opts: {
|
|
3938
|
+
conditional?: "FNX" | "fnx" | "FXX" | "fxx";
|
|
3939
|
+
expiration?: {
|
|
3940
|
+
ex: number;
|
|
3941
|
+
px?: never;
|
|
3942
|
+
exat?: never;
|
|
3943
|
+
pxat?: never;
|
|
3944
|
+
keepttl?: never;
|
|
3945
|
+
} | {
|
|
3946
|
+
ex?: never;
|
|
3947
|
+
px: number;
|
|
3948
|
+
exat?: never;
|
|
3949
|
+
pxat?: never;
|
|
3950
|
+
keepttl?: never;
|
|
3951
|
+
} | {
|
|
3952
|
+
ex?: never;
|
|
3953
|
+
px?: never;
|
|
3954
|
+
exat: number;
|
|
3955
|
+
pxat?: never;
|
|
3956
|
+
keepttl?: never;
|
|
3957
|
+
} | {
|
|
3958
|
+
ex?: never;
|
|
3959
|
+
px?: never;
|
|
3960
|
+
exat?: never;
|
|
3961
|
+
pxat: number;
|
|
3962
|
+
keepttl?: never;
|
|
3963
|
+
} | {
|
|
3964
|
+
ex?: never;
|
|
3965
|
+
px?: never;
|
|
3966
|
+
exat?: never;
|
|
3967
|
+
pxat?: never;
|
|
3968
|
+
keepttl: true;
|
|
3969
|
+
} | {
|
|
3970
|
+
ex?: never;
|
|
3971
|
+
px?: never;
|
|
3972
|
+
exat?: never;
|
|
3973
|
+
pxat?: never;
|
|
3974
|
+
keepttl?: never;
|
|
3975
|
+
};
|
|
3976
|
+
}, kv: Record<string, TData>) => Promise<number>;
|
|
3647
3977
|
/**
|
|
3648
3978
|
* @see https://redis.io/commands/hsetnx
|
|
3649
3979
|
*/
|
|
@@ -3962,10 +4292,18 @@ declare class Redis {
|
|
|
3962
4292
|
* @see https://redis.io/commands/xack
|
|
3963
4293
|
*/
|
|
3964
4294
|
xack: (key: string, group: string, id: string | string[]) => Promise<number>;
|
|
4295
|
+
/**
|
|
4296
|
+
* @see https://redis.io/commands/xackdel
|
|
4297
|
+
*/
|
|
4298
|
+
xackdel: (key: string, group: string, opts: "KEEPREF" | "keepref" | "DELREF" | "delref" | "ACKED" | "acked", ...ids: string[]) => Promise<number[]>;
|
|
3965
4299
|
/**
|
|
3966
4300
|
* @see https://redis.io/commands/xdel
|
|
3967
4301
|
*/
|
|
3968
4302
|
xdel: (key: string, ids: string | string[]) => Promise<number>;
|
|
4303
|
+
/**
|
|
4304
|
+
* @see https://redis.io/commands/xdelex
|
|
4305
|
+
*/
|
|
4306
|
+
xdelex: (key: string, opts?: ("KEEPREF" | "keepref" | "DELREF" | "delref" | "ACKED" | "acked") | undefined, ...ids: string[]) => Promise<number[]>;
|
|
3969
4307
|
/**
|
|
3970
4308
|
* @see https://redis.io/commands/xgroup
|
|
3971
4309
|
*/
|
|
@@ -4187,4 +4525,4 @@ declare class ZMScoreCommand<TData> extends Command<string[] | null, number[] |
|
|
|
4187
4525
|
constructor(cmd: [key: string, members: TData[]], opts?: CommandOptions<string[] | null, number[] | null>);
|
|
4188
4526
|
}
|
|
4189
4527
|
|
|
4190
|
-
export {
|
|
4528
|
+
export { HPExpireTimeCommand as $, AppendCommand as A, BitCountCommand as B, ClientSetInfoCommand as C, DBSizeCommand as D, EchoCommand as E, FlushAllCommand as F, GeoAddCommand as G, type HttpClientConfig as H, GeoSearchCommand as I, GeoSearchStoreCommand as J, GetCommand as K, GetBitCommand as L, GetDelCommand as M, GetExCommand as N, GetRangeCommand as O, Pipeline as P, GetSetCommand as Q, type RedisOptions as R, HDelCommand as S, HExistsCommand as T, type UpstashRequest as U, HExpireCommand as V, HExpireAtCommand as W, HExpireTimeCommand as X, HTtlCommand as Y, HPExpireCommand as Z, HPExpireAtCommand as _, type RequesterConfig as a, PSetEXCommand as a$, HPTtlCommand as a0, HPersistCommand as a1, HGetCommand as a2, HGetAllCommand as a3, HGetDelCommand as a4, HGetExCommand as a5, HIncrByCommand as a6, HIncrByFloatCommand as a7, HKeysCommand as a8, HLenCommand as a9, JsonObjKeysCommand as aA, JsonObjLenCommand as aB, JsonRespCommand as aC, JsonSetCommand as aD, JsonStrAppendCommand as aE, JsonStrLenCommand as aF, JsonToggleCommand as aG, JsonTypeCommand as aH, KeysCommand as aI, LIndexCommand as aJ, LInsertCommand as aK, LLenCommand as aL, LMoveCommand as aM, LPopCommand as aN, LPushCommand as aO, LPushXCommand as aP, LRangeCommand as aQ, LRemCommand as aR, LSetCommand as aS, LTrimCommand as aT, MGetCommand as aU, MSetCommand as aV, MSetNXCommand as aW, PersistCommand as aX, PExpireCommand as aY, PExpireAtCommand as aZ, PingCommand as a_, HMGetCommand as aa, HMSetCommand as ab, HRandFieldCommand as ac, HScanCommand as ad, HSetCommand as ae, HSetExCommand as af, HSetNXCommand as ag, HStrLenCommand as ah, HValsCommand as ai, IncrCommand as aj, IncrByCommand as ak, IncrByFloatCommand as al, JsonArrAppendCommand as am, JsonArrIndexCommand as an, JsonArrInsertCommand as ao, JsonArrLenCommand as ap, JsonArrPopCommand as aq, JsonArrTrimCommand as ar, JsonClearCommand as as, JsonDelCommand as at, JsonForgetCommand as au, JsonGetCommand as av, JsonMergeCommand as aw, JsonMGetCommand as ax, JsonNumIncrByCommand as ay, JsonNumMultByCommand as az, Redis as b, ZRemRangeByLexCommand as b$, PTtlCommand as b0, PublishCommand as b1, RandomKeyCommand as b2, RenameCommand as b3, RenameNXCommand as b4, RPopCommand as b5, RPushCommand as b6, RPushXCommand as b7, SAddCommand as b8, ScanCommand as b9, TimeCommand as bA, TouchCommand as bB, TtlCommand as bC, type Type as bD, TypeCommand as bE, UnlinkCommand as bF, XAddCommand as bG, XAckDelCommand as bH, XDelExCommand as bI, XRangeCommand as bJ, type ScoreMember as bK, type ZAddCommandOptions as bL, ZAddCommand as bM, ZCardCommand as bN, ZCountCommand as bO, ZDiffStoreCommand as bP, ZIncrByCommand as bQ, ZInterStoreCommand as bR, type ZInterStoreCommandOptions as bS, ZLexCountCommand as bT, ZMScoreCommand as bU, ZPopMaxCommand as bV, ZPopMinCommand as bW, ZRangeCommand as bX, type ZRangeCommandOptions as bY, ZRankCommand as bZ, ZRemCommand as b_, type ScanCommandOptions as ba, SCardCommand as bb, ScriptExistsCommand as bc, ScriptFlushCommand as bd, ScriptLoadCommand as be, SDiffCommand as bf, SDiffStoreCommand as bg, SetCommand as bh, type SetCommandOptions as bi, SetBitCommand as bj, SetExCommand as bk, SetNxCommand as bl, SetRangeCommand as bm, SInterCommand as bn, SInterStoreCommand as bo, SIsMemberCommand as bp, SMembersCommand as bq, SMIsMemberCommand as br, SMoveCommand as bs, SPopCommand as bt, SRandMemberCommand as bu, SRemCommand as bv, SScanCommand as bw, StrLenCommand as bx, SUnionCommand as by, SUnionStoreCommand as bz, type Requester as c, ZRemRangeByRankCommand as c0, ZRemRangeByScoreCommand as c1, ZRevRankCommand as c2, ZScanCommand as c3, ZScoreCommand as c4, ZUnionCommand as c5, type ZUnionCommandOptions as c6, ZUnionStoreCommand as c7, type ZUnionStoreCommandOptions as c8, type UpstashResponse as d, error as e, BitOpCommand as f, BitPosCommand as g, type ClientSetInfoAttribute as h, CopyCommand as i, DecrCommand as j, DecrByCommand as k, DelCommand as l, EvalROCommand as m, EvalCommand as n, EvalshaROCommand as o, EvalshaCommand as p, ExistsCommand as q, ExpireCommand as r, type ExpireOption as s, ExpireAtCommand as t, FlushDBCommand as u, type GeoAddCommandOptions as v, type GeoMember as w, GeoDistCommand as x, GeoHashCommand as y, GeoPosCommand as z };
|