@upstash/redis 1.34.7 → 1.34.8
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-TA73MYTP.mjs → chunk-5XANP4AV.mjs} +190 -21
- package/cloudflare.d.mts +2 -2
- package/cloudflare.d.ts +2 -2
- package/cloudflare.js +190 -21
- package/cloudflare.mjs +1 -1
- package/fastly.d.mts +2 -2
- package/fastly.d.ts +2 -2
- package/fastly.js +190 -21
- package/fastly.mjs +1 -1
- package/nodejs.d.mts +2 -2
- package/nodejs.d.ts +2 -2
- package/nodejs.js +190 -21
- package/nodejs.mjs +1 -1
- package/package.json +1 -1
- package/{zmscore-hRk-rDLY.d.mts → zmscore-CjoCv9kz.d.mts} +128 -17
- package/{zmscore-hRk-rDLY.d.ts → zmscore-CjoCv9kz.d.ts} +128 -17
|
@@ -308,9 +308,9 @@ declare class GeoAddCommand<TMemberType = string> extends Command<number | null,
|
|
|
308
308
|
], opts?: CommandOptions<number | null, number | null>);
|
|
309
309
|
}
|
|
310
310
|
|
|
311
|
-
type
|
|
311
|
+
type ExpireOption = "NX" | "nx" | "XX" | "xx" | "GT" | "gt" | "LT" | "lt";
|
|
312
312
|
declare class ExpireCommand extends Command<"0" | "1", 0 | 1> {
|
|
313
|
-
constructor(cmd: [key: string, seconds: number, option?:
|
|
313
|
+
constructor(cmd: [key: string, seconds: number, option?: ExpireOption], opts?: CommandOptions<"0" | "1", 0 | 1>);
|
|
314
314
|
}
|
|
315
315
|
|
|
316
316
|
/**
|
|
@@ -448,7 +448,7 @@ declare class ExistsCommand extends Command<number, number> {
|
|
|
448
448
|
* @see https://redis.io/commands/expireat
|
|
449
449
|
*/
|
|
450
450
|
declare class ExpireAtCommand extends Command<"0" | "1", 0 | 1> {
|
|
451
|
-
constructor(cmd: [key: string, unix: number, option?:
|
|
451
|
+
constructor(cmd: [key: string, unix: number, option?: ExpireOption], opts?: CommandOptions<"0" | "1", 0 | 1>);
|
|
452
452
|
}
|
|
453
453
|
|
|
454
454
|
/**
|
|
@@ -700,10 +700,53 @@ declare class HExpireCommand extends Command<(-2 | 0 | 1 | 2)[], (-2 | 0 | 1 | 2
|
|
|
700
700
|
key: string,
|
|
701
701
|
fields: (string | number) | (string | number)[],
|
|
702
702
|
seconds: number,
|
|
703
|
-
option?:
|
|
703
|
+
option?: ExpireOption
|
|
704
704
|
], opts?: CommandOptions<(-2 | 0 | 1 | 2)[], (-2 | 0 | 1 | 2)[]>);
|
|
705
705
|
}
|
|
706
706
|
|
|
707
|
+
declare class HExpireAtCommand extends Command<(-2 | 0 | 1 | 2)[], (-2 | 0 | 1 | 2)[]> {
|
|
708
|
+
constructor(cmd: [
|
|
709
|
+
key: string,
|
|
710
|
+
fields: (string | number) | (string | number)[],
|
|
711
|
+
timestamp: number,
|
|
712
|
+
option?: ExpireOption
|
|
713
|
+
], opts?: CommandOptions<(-2 | 0 | 1 | 2)[], (-2 | 0 | 1 | 2)[]>);
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
declare class HExpireTimeCommand extends Command<number[], number[]> {
|
|
717
|
+
constructor(cmd: [key: string, fields: (string | number) | (string | number)[]], opts?: CommandOptions<number[], number[]>);
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
declare class HPersistCommand extends Command<(-2 | -1 | 1)[], (-2 | -1 | 1)[]> {
|
|
721
|
+
constructor(cmd: [key: string, fields: (string | number) | (string | number)[]], opts?: CommandOptions<(-2 | -1 | 1)[], (-2 | -1 | 1)[]>);
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
declare class HPExpireCommand extends Command<(-2 | 0 | 1 | 2)[], (-2 | 0 | 1 | 2)[]> {
|
|
725
|
+
constructor(cmd: [
|
|
726
|
+
key: string,
|
|
727
|
+
fields: (string | number) | (string | number)[],
|
|
728
|
+
milliseconds: number,
|
|
729
|
+
option?: ExpireOption
|
|
730
|
+
], opts?: CommandOptions<(-2 | 0 | 1 | 2)[], (-2 | 0 | 1 | 2)[]>);
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
declare class HPExpireAtCommand extends Command<(-2 | 0 | 1 | 2)[], (-2 | 0 | 1 | 2)[]> {
|
|
734
|
+
constructor(cmd: [
|
|
735
|
+
key: string,
|
|
736
|
+
fields: (string | number) | (string | number)[],
|
|
737
|
+
timestamp: number,
|
|
738
|
+
option?: ExpireOption
|
|
739
|
+
], opts?: CommandOptions<(-2 | 0 | 1 | 2)[], (-2 | 0 | 1 | 2)[]>);
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
declare class HPExpireTimeCommand extends Command<number[], number[]> {
|
|
743
|
+
constructor(cmd: [key: string, fields: (string | number) | (string | number)[]], opts?: CommandOptions<number[], number[]>);
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
declare class HPTtlCommand extends Command<number[], number[]> {
|
|
747
|
+
constructor(cmd: [key: string, fields: (string | number) | (string | number)[]], opts?: CommandOptions<number[], number[]>);
|
|
748
|
+
}
|
|
749
|
+
|
|
707
750
|
/**
|
|
708
751
|
* @see https://redis.io/commands/hget
|
|
709
752
|
*/
|
|
@@ -811,6 +854,10 @@ declare class HStrLenCommand extends Command<number, number> {
|
|
|
811
854
|
constructor(cmd: [key: string, field: string], opts?: CommandOptions<number, number>);
|
|
812
855
|
}
|
|
813
856
|
|
|
857
|
+
declare class HTtlCommand extends Command<number[], number[]> {
|
|
858
|
+
constructor(cmd: [key: string, fields: (string | number) | (string | number)[]], opts?: CommandOptions<number[], number[]>);
|
|
859
|
+
}
|
|
860
|
+
|
|
814
861
|
/**
|
|
815
862
|
* @see https://redis.io/commands/hvals
|
|
816
863
|
*/
|
|
@@ -1126,14 +1173,14 @@ declare class PersistCommand extends Command<"0" | "1", 0 | 1> {
|
|
|
1126
1173
|
* @see https://redis.io/commands/pexpire
|
|
1127
1174
|
*/
|
|
1128
1175
|
declare class PExpireCommand extends Command<"0" | "1", 0 | 1> {
|
|
1129
|
-
constructor(cmd: [key: string, milliseconds: number, option?:
|
|
1176
|
+
constructor(cmd: [key: string, milliseconds: number, option?: ExpireOption], opts?: CommandOptions<"0" | "1", 0 | 1>);
|
|
1130
1177
|
}
|
|
1131
1178
|
|
|
1132
1179
|
/**
|
|
1133
1180
|
* @see https://redis.io/commands/pexpireat
|
|
1134
1181
|
*/
|
|
1135
1182
|
declare class PExpireAtCommand extends Command<"0" | "1", 0 | 1> {
|
|
1136
|
-
constructor(cmd: [key: string, unix: number, option?:
|
|
1183
|
+
constructor(cmd: [key: string, unix: number, option?: ExpireOption], opts?: CommandOptions<"0" | "1", 0 | 1>);
|
|
1137
1184
|
}
|
|
1138
1185
|
|
|
1139
1186
|
/**
|
|
@@ -1938,11 +1985,11 @@ declare class Pipeline<TCommands extends Command<any, any>[] = []> {
|
|
|
1938
1985
|
/**
|
|
1939
1986
|
* @see https://redis.io/commands/expire
|
|
1940
1987
|
*/
|
|
1941
|
-
expire: (key: string, seconds: number, option?:
|
|
1988
|
+
expire: (key: string, seconds: number, option?: ExpireOption | undefined) => Pipeline<[...TCommands, Command<any, 0 | 1>]>;
|
|
1942
1989
|
/**
|
|
1943
1990
|
* @see https://redis.io/commands/expireat
|
|
1944
1991
|
*/
|
|
1945
|
-
expireat: (key: string, unix: number, option?:
|
|
1992
|
+
expireat: (key: string, unix: number, option?: ExpireOption | undefined) => Pipeline<[...TCommands, Command<any, 0 | 1>]>;
|
|
1946
1993
|
/**
|
|
1947
1994
|
* @see https://redis.io/commands/flushall
|
|
1948
1995
|
*/
|
|
@@ -2114,7 +2161,39 @@ declare class Pipeline<TCommands extends Command<any, any>[] = []> {
|
|
|
2114
2161
|
/**
|
|
2115
2162
|
* @see https://redis.io/commands/hexpire
|
|
2116
2163
|
*/
|
|
2117
|
-
hexpire: (key: string, fields: string | number | (string | number)[], seconds: number, option?:
|
|
2164
|
+
hexpire: (key: string, fields: string | number | (string | number)[], seconds: number, option?: ExpireOption | undefined) => Pipeline<[...TCommands, Command<any, (0 | 1 | 2 | -2)[]>]>;
|
|
2165
|
+
/**
|
|
2166
|
+
* @see https://redis.io/commands/hexpireat
|
|
2167
|
+
*/
|
|
2168
|
+
hexpireat: (key: string, fields: string | number | (string | number)[], timestamp: number, option?: ExpireOption | undefined) => Pipeline<[...TCommands, Command<any, (0 | 1 | 2 | -2)[]>]>;
|
|
2169
|
+
/**
|
|
2170
|
+
* @see https://redis.io/commands/hexpiretime
|
|
2171
|
+
*/
|
|
2172
|
+
hexpiretime: (key: string, fields: string | number | (string | number)[]) => Pipeline<[...TCommands, Command<any, number[]>]>;
|
|
2173
|
+
/**
|
|
2174
|
+
* @see https://redis.io/commands/httl
|
|
2175
|
+
*/
|
|
2176
|
+
httl: (key: string, fields: string | number | (string | number)[]) => Pipeline<[...TCommands, Command<any, number[]>]>;
|
|
2177
|
+
/**
|
|
2178
|
+
* @see https://redis.io/commands/hpexpire
|
|
2179
|
+
*/
|
|
2180
|
+
hpexpire: (key: string, fields: string | number | (string | number)[], milliseconds: number, option?: ExpireOption | undefined) => Pipeline<[...TCommands, Command<any, (0 | 1 | 2 | -2)[]>]>;
|
|
2181
|
+
/**
|
|
2182
|
+
* @see https://redis.io/commands/hpexpireat
|
|
2183
|
+
*/
|
|
2184
|
+
hpexpireat: (key: string, fields: string | number | (string | number)[], timestamp: number, option?: ExpireOption | undefined) => Pipeline<[...TCommands, Command<any, (0 | 1 | 2 | -2)[]>]>;
|
|
2185
|
+
/**
|
|
2186
|
+
* @see https://redis.io/commands/hpexpiretime
|
|
2187
|
+
*/
|
|
2188
|
+
hpexpiretime: (key: string, fields: string | number | (string | number)[]) => Pipeline<[...TCommands, Command<any, number[]>]>;
|
|
2189
|
+
/**
|
|
2190
|
+
* @see https://redis.io/commands/hpttl
|
|
2191
|
+
*/
|
|
2192
|
+
hpttl: (key: string, fields: string | number | (string | number)[]) => Pipeline<[...TCommands, Command<any, number[]>]>;
|
|
2193
|
+
/**
|
|
2194
|
+
* @see https://redis.io/commands/hpersist
|
|
2195
|
+
*/
|
|
2196
|
+
hpersist: (key: string, fields: string | number | (string | number)[]) => Pipeline<[...TCommands, Command<any, (1 | -2 | -1)[]>]>;
|
|
2118
2197
|
/**
|
|
2119
2198
|
* @see https://redis.io/commands/hget
|
|
2120
2199
|
*/
|
|
@@ -2262,11 +2341,11 @@ declare class Pipeline<TCommands extends Command<any, any>[] = []> {
|
|
|
2262
2341
|
/**
|
|
2263
2342
|
* @see https://redis.io/commands/pexpire
|
|
2264
2343
|
*/
|
|
2265
|
-
pexpire: (key: string, milliseconds: number, option?:
|
|
2344
|
+
pexpire: (key: string, milliseconds: number, option?: ExpireOption | undefined) => Pipeline<[...TCommands, Command<any, 0 | 1>]>;
|
|
2266
2345
|
/**
|
|
2267
2346
|
* @see https://redis.io/commands/pexpireat
|
|
2268
2347
|
*/
|
|
2269
|
-
pexpireat: (key: string, unix: number, option?:
|
|
2348
|
+
pexpireat: (key: string, unix: number, option?: ExpireOption | undefined) => Pipeline<[...TCommands, Command<any, 0 | 1>]>;
|
|
2270
2349
|
/**
|
|
2271
2350
|
* @see https://redis.io/commands/pfadd
|
|
2272
2351
|
*/
|
|
@@ -3099,11 +3178,11 @@ declare class Redis {
|
|
|
3099
3178
|
/**
|
|
3100
3179
|
* @see https://redis.io/commands/expire
|
|
3101
3180
|
*/
|
|
3102
|
-
expire: (key: string, seconds: number, option?:
|
|
3181
|
+
expire: (key: string, seconds: number, option?: ExpireOption | undefined) => Promise<0 | 1>;
|
|
3103
3182
|
/**
|
|
3104
3183
|
* @see https://redis.io/commands/expireat
|
|
3105
3184
|
*/
|
|
3106
|
-
expireat: (key: string, unix: number, option?:
|
|
3185
|
+
expireat: (key: string, unix: number, option?: ExpireOption | undefined) => Promise<0 | 1>;
|
|
3107
3186
|
/**
|
|
3108
3187
|
* @see https://redis.io/commands/flushall
|
|
3109
3188
|
*/
|
|
@@ -3275,7 +3354,39 @@ declare class Redis {
|
|
|
3275
3354
|
/**
|
|
3276
3355
|
* @see https://redis.io/commands/hexpire
|
|
3277
3356
|
*/
|
|
3278
|
-
hexpire: (key: string, fields: string | number | (string | number)[], seconds: number, option?:
|
|
3357
|
+
hexpire: (key: string, fields: string | number | (string | number)[], seconds: number, option?: ExpireOption | undefined) => Promise<(0 | 1 | 2 | -2)[]>;
|
|
3358
|
+
/**
|
|
3359
|
+
* @see https://redis.io/commands/hexpireat
|
|
3360
|
+
*/
|
|
3361
|
+
hexpireat: (key: string, fields: string | number | (string | number)[], timestamp: number, option?: ExpireOption | undefined) => Promise<(0 | 1 | 2 | -2)[]>;
|
|
3362
|
+
/**
|
|
3363
|
+
* @see https://redis.io/commands/hexpiretime
|
|
3364
|
+
*/
|
|
3365
|
+
hexpiretime: (key: string, fields: string | number | (string | number)[]) => Promise<number[]>;
|
|
3366
|
+
/**
|
|
3367
|
+
* @see https://redis.io/commands/httl
|
|
3368
|
+
*/
|
|
3369
|
+
httl: (key: string, fields: string | number | (string | number)[]) => Promise<number[]>;
|
|
3370
|
+
/**
|
|
3371
|
+
* @see https://redis.io/commands/hpexpire
|
|
3372
|
+
*/
|
|
3373
|
+
hpexpire: (key: string, fields: string | number | (string | number)[], milliseconds: number, option?: ExpireOption | undefined) => Promise<(0 | 1 | 2 | -2)[]>;
|
|
3374
|
+
/**
|
|
3375
|
+
* @see https://redis.io/commands/hpexpireat
|
|
3376
|
+
*/
|
|
3377
|
+
hpexpireat: (key: string, fields: string | number | (string | number)[], timestamp: number, option?: ExpireOption | undefined) => Promise<(0 | 1 | 2 | -2)[]>;
|
|
3378
|
+
/**
|
|
3379
|
+
* @see https://redis.io/commands/hpexpiretime
|
|
3380
|
+
*/
|
|
3381
|
+
hpexpiretime: (key: string, fields: string | number | (string | number)[]) => Promise<number[]>;
|
|
3382
|
+
/**
|
|
3383
|
+
* @see https://redis.io/commands/hpttl
|
|
3384
|
+
*/
|
|
3385
|
+
hpttl: (key: string, fields: string | number | (string | number)[]) => Promise<number[]>;
|
|
3386
|
+
/**
|
|
3387
|
+
* @see https://redis.io/commands/hpersist
|
|
3388
|
+
*/
|
|
3389
|
+
hpersist: (key: string, fields: string | number | (string | number)[]) => Promise<(1 | -2 | -1)[]>;
|
|
3279
3390
|
/**
|
|
3280
3391
|
* @see https://redis.io/commands/hget
|
|
3281
3392
|
*/
|
|
@@ -3427,11 +3538,11 @@ declare class Redis {
|
|
|
3427
3538
|
/**
|
|
3428
3539
|
* @see https://redis.io/commands/pexpire
|
|
3429
3540
|
*/
|
|
3430
|
-
pexpire: (key: string, milliseconds: number, option?:
|
|
3541
|
+
pexpire: (key: string, milliseconds: number, option?: ExpireOption | undefined) => Promise<0 | 1>;
|
|
3431
3542
|
/**
|
|
3432
3543
|
* @see https://redis.io/commands/pexpireat
|
|
3433
3544
|
*/
|
|
3434
|
-
pexpireat: (key: string, unix: number, option?:
|
|
3545
|
+
pexpireat: (key: string, unix: number, option?: ExpireOption | undefined) => Promise<0 | 1>;
|
|
3435
3546
|
/**
|
|
3436
3547
|
* @see https://redis.io/commands/pfadd
|
|
3437
3548
|
*/
|
|
@@ -3858,4 +3969,4 @@ declare class ZMScoreCommand<TData> extends Command<string[] | null, number[] |
|
|
|
3858
3969
|
constructor(cmd: [key: string, members: TData[]], opts?: CommandOptions<string[] | null, number[] | null>);
|
|
3859
3970
|
}
|
|
3860
3971
|
|
|
3861
|
-
export {
|
|
3972
|
+
export { HGetCommand as $, AppendCommand as A, BitCountCommand as B, CopyCommand as C, DBSizeCommand as D, EchoCommand as E, FlushAllCommand as F, GeoAddCommand as G, GetCommand as H, GetBitCommand as I, GetDelCommand as J, GetExCommand as K, GetRangeCommand as L, GetSetCommand as M, HDelCommand as N, HExistsCommand as O, Pipeline as P, HExpireCommand as Q, type RedisOptions as R, HExpireAtCommand as S, HExpireTimeCommand as T, type UpstashRequest as U, HTtlCommand as V, HPExpireCommand as W, HPExpireAtCommand as X, HPExpireTimeCommand as Y, HPTtlCommand as Z, HPersistCommand as _, type RequesterConfig as a, RPopCommand as a$, HGetAllCommand as a0, HIncrByCommand as a1, HIncrByFloatCommand as a2, HKeysCommand as a3, HLenCommand as a4, HMGetCommand as a5, HMSetCommand as a6, HRandFieldCommand as a7, HScanCommand as a8, HSetCommand as a9, JsonToggleCommand as aA, JsonTypeCommand as aB, KeysCommand as aC, LIndexCommand as aD, LInsertCommand as aE, LLenCommand as aF, LMoveCommand as aG, LPopCommand as aH, LPushCommand as aI, LPushXCommand as aJ, LRangeCommand as aK, LRemCommand as aL, LSetCommand as aM, LTrimCommand as aN, MGetCommand as aO, MSetCommand as aP, MSetNXCommand as aQ, PersistCommand as aR, PExpireCommand as aS, PExpireAtCommand as aT, PingCommand as aU, PSetEXCommand as aV, PTtlCommand as aW, PublishCommand as aX, RandomKeyCommand as aY, RenameCommand as aZ, RenameNXCommand as a_, HSetNXCommand as aa, HStrLenCommand as ab, HValsCommand as ac, IncrCommand as ad, IncrByCommand as ae, IncrByFloatCommand as af, JsonArrAppendCommand as ag, JsonArrIndexCommand as ah, JsonArrInsertCommand as ai, JsonArrLenCommand as aj, JsonArrPopCommand as ak, JsonArrTrimCommand as al, JsonClearCommand as am, JsonDelCommand as an, JsonForgetCommand as ao, JsonGetCommand as ap, JsonMergeCommand as aq, JsonMGetCommand as ar, JsonNumIncrByCommand as as, JsonNumMultByCommand as at, JsonObjKeysCommand as au, JsonObjLenCommand as av, JsonRespCommand as aw, JsonSetCommand as ax, JsonStrAppendCommand as ay, JsonStrLenCommand as az, Redis as b, ZUnionStoreCommand as b$, RPushCommand as b0, RPushXCommand as b1, SAddCommand as b2, ScanCommand as b3, type ScanCommandOptions as b4, SCardCommand as b5, ScriptExistsCommand as b6, ScriptFlushCommand as b7, ScriptLoadCommand as b8, SDiffCommand as b9, XAddCommand as bA, XRangeCommand as bB, type ScoreMember as bC, type ZAddCommandOptions as bD, ZAddCommand as bE, ZCardCommand as bF, ZCountCommand as bG, ZDiffStoreCommand as bH, ZIncrByCommand as bI, ZInterStoreCommand as bJ, type ZInterStoreCommandOptions as bK, ZLexCountCommand as bL, ZMScoreCommand as bM, ZPopMaxCommand as bN, ZPopMinCommand as bO, ZRangeCommand as bP, type ZRangeCommandOptions as bQ, ZRankCommand as bR, ZRemCommand as bS, ZRemRangeByLexCommand as bT, ZRemRangeByRankCommand as bU, ZRemRangeByScoreCommand as bV, ZRevRankCommand as bW, ZScanCommand as bX, ZScoreCommand as bY, ZUnionCommand as bZ, type ZUnionCommandOptions as b_, SDiffStoreCommand as ba, SetCommand as bb, type SetCommandOptions as bc, SetBitCommand as bd, SetExCommand as be, SetNxCommand as bf, SetRangeCommand as bg, SInterCommand as bh, SInterStoreCommand as bi, SIsMemberCommand as bj, SMembersCommand as bk, SMIsMemberCommand as bl, SMoveCommand as bm, SPopCommand as bn, SRandMemberCommand as bo, SRemCommand as bp, SScanCommand as bq, StrLenCommand as br, SUnionCommand as bs, SUnionStoreCommand as bt, TimeCommand as bu, TouchCommand as bv, TtlCommand as bw, type Type as bx, TypeCommand as by, UnlinkCommand as bz, type UpstashResponse as c, type ZUnionStoreCommandOptions as c0, type Requester as d, error as e, BitOpCommand as f, BitPosCommand as g, DecrCommand as h, DecrByCommand as i, DelCommand as j, EvalROCommand as k, EvalCommand as l, EvalshaROCommand as m, EvalshaCommand as n, ExistsCommand as o, ExpireCommand as p, type ExpireOption as q, ExpireAtCommand as r, FlushDBCommand as s, type GeoAddCommandOptions as t, type GeoMember as u, GeoDistCommand as v, GeoHashCommand as w, GeoPosCommand as x, GeoSearchCommand as y, GeoSearchStoreCommand as z };
|
|
@@ -308,9 +308,9 @@ declare class GeoAddCommand<TMemberType = string> extends Command<number | null,
|
|
|
308
308
|
], opts?: CommandOptions<number | null, number | null>);
|
|
309
309
|
}
|
|
310
310
|
|
|
311
|
-
type
|
|
311
|
+
type ExpireOption = "NX" | "nx" | "XX" | "xx" | "GT" | "gt" | "LT" | "lt";
|
|
312
312
|
declare class ExpireCommand extends Command<"0" | "1", 0 | 1> {
|
|
313
|
-
constructor(cmd: [key: string, seconds: number, option?:
|
|
313
|
+
constructor(cmd: [key: string, seconds: number, option?: ExpireOption], opts?: CommandOptions<"0" | "1", 0 | 1>);
|
|
314
314
|
}
|
|
315
315
|
|
|
316
316
|
/**
|
|
@@ -448,7 +448,7 @@ declare class ExistsCommand extends Command<number, number> {
|
|
|
448
448
|
* @see https://redis.io/commands/expireat
|
|
449
449
|
*/
|
|
450
450
|
declare class ExpireAtCommand extends Command<"0" | "1", 0 | 1> {
|
|
451
|
-
constructor(cmd: [key: string, unix: number, option?:
|
|
451
|
+
constructor(cmd: [key: string, unix: number, option?: ExpireOption], opts?: CommandOptions<"0" | "1", 0 | 1>);
|
|
452
452
|
}
|
|
453
453
|
|
|
454
454
|
/**
|
|
@@ -700,10 +700,53 @@ declare class HExpireCommand extends Command<(-2 | 0 | 1 | 2)[], (-2 | 0 | 1 | 2
|
|
|
700
700
|
key: string,
|
|
701
701
|
fields: (string | number) | (string | number)[],
|
|
702
702
|
seconds: number,
|
|
703
|
-
option?:
|
|
703
|
+
option?: ExpireOption
|
|
704
704
|
], opts?: CommandOptions<(-2 | 0 | 1 | 2)[], (-2 | 0 | 1 | 2)[]>);
|
|
705
705
|
}
|
|
706
706
|
|
|
707
|
+
declare class HExpireAtCommand extends Command<(-2 | 0 | 1 | 2)[], (-2 | 0 | 1 | 2)[]> {
|
|
708
|
+
constructor(cmd: [
|
|
709
|
+
key: string,
|
|
710
|
+
fields: (string | number) | (string | number)[],
|
|
711
|
+
timestamp: number,
|
|
712
|
+
option?: ExpireOption
|
|
713
|
+
], opts?: CommandOptions<(-2 | 0 | 1 | 2)[], (-2 | 0 | 1 | 2)[]>);
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
declare class HExpireTimeCommand extends Command<number[], number[]> {
|
|
717
|
+
constructor(cmd: [key: string, fields: (string | number) | (string | number)[]], opts?: CommandOptions<number[], number[]>);
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
declare class HPersistCommand extends Command<(-2 | -1 | 1)[], (-2 | -1 | 1)[]> {
|
|
721
|
+
constructor(cmd: [key: string, fields: (string | number) | (string | number)[]], opts?: CommandOptions<(-2 | -1 | 1)[], (-2 | -1 | 1)[]>);
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
declare class HPExpireCommand extends Command<(-2 | 0 | 1 | 2)[], (-2 | 0 | 1 | 2)[]> {
|
|
725
|
+
constructor(cmd: [
|
|
726
|
+
key: string,
|
|
727
|
+
fields: (string | number) | (string | number)[],
|
|
728
|
+
milliseconds: number,
|
|
729
|
+
option?: ExpireOption
|
|
730
|
+
], opts?: CommandOptions<(-2 | 0 | 1 | 2)[], (-2 | 0 | 1 | 2)[]>);
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
declare class HPExpireAtCommand extends Command<(-2 | 0 | 1 | 2)[], (-2 | 0 | 1 | 2)[]> {
|
|
734
|
+
constructor(cmd: [
|
|
735
|
+
key: string,
|
|
736
|
+
fields: (string | number) | (string | number)[],
|
|
737
|
+
timestamp: number,
|
|
738
|
+
option?: ExpireOption
|
|
739
|
+
], opts?: CommandOptions<(-2 | 0 | 1 | 2)[], (-2 | 0 | 1 | 2)[]>);
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
declare class HPExpireTimeCommand extends Command<number[], number[]> {
|
|
743
|
+
constructor(cmd: [key: string, fields: (string | number) | (string | number)[]], opts?: CommandOptions<number[], number[]>);
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
declare class HPTtlCommand extends Command<number[], number[]> {
|
|
747
|
+
constructor(cmd: [key: string, fields: (string | number) | (string | number)[]], opts?: CommandOptions<number[], number[]>);
|
|
748
|
+
}
|
|
749
|
+
|
|
707
750
|
/**
|
|
708
751
|
* @see https://redis.io/commands/hget
|
|
709
752
|
*/
|
|
@@ -811,6 +854,10 @@ declare class HStrLenCommand extends Command<number, number> {
|
|
|
811
854
|
constructor(cmd: [key: string, field: string], opts?: CommandOptions<number, number>);
|
|
812
855
|
}
|
|
813
856
|
|
|
857
|
+
declare class HTtlCommand extends Command<number[], number[]> {
|
|
858
|
+
constructor(cmd: [key: string, fields: (string | number) | (string | number)[]], opts?: CommandOptions<number[], number[]>);
|
|
859
|
+
}
|
|
860
|
+
|
|
814
861
|
/**
|
|
815
862
|
* @see https://redis.io/commands/hvals
|
|
816
863
|
*/
|
|
@@ -1126,14 +1173,14 @@ declare class PersistCommand extends Command<"0" | "1", 0 | 1> {
|
|
|
1126
1173
|
* @see https://redis.io/commands/pexpire
|
|
1127
1174
|
*/
|
|
1128
1175
|
declare class PExpireCommand extends Command<"0" | "1", 0 | 1> {
|
|
1129
|
-
constructor(cmd: [key: string, milliseconds: number, option?:
|
|
1176
|
+
constructor(cmd: [key: string, milliseconds: number, option?: ExpireOption], opts?: CommandOptions<"0" | "1", 0 | 1>);
|
|
1130
1177
|
}
|
|
1131
1178
|
|
|
1132
1179
|
/**
|
|
1133
1180
|
* @see https://redis.io/commands/pexpireat
|
|
1134
1181
|
*/
|
|
1135
1182
|
declare class PExpireAtCommand extends Command<"0" | "1", 0 | 1> {
|
|
1136
|
-
constructor(cmd: [key: string, unix: number, option?:
|
|
1183
|
+
constructor(cmd: [key: string, unix: number, option?: ExpireOption], opts?: CommandOptions<"0" | "1", 0 | 1>);
|
|
1137
1184
|
}
|
|
1138
1185
|
|
|
1139
1186
|
/**
|
|
@@ -1938,11 +1985,11 @@ declare class Pipeline<TCommands extends Command<any, any>[] = []> {
|
|
|
1938
1985
|
/**
|
|
1939
1986
|
* @see https://redis.io/commands/expire
|
|
1940
1987
|
*/
|
|
1941
|
-
expire: (key: string, seconds: number, option?:
|
|
1988
|
+
expire: (key: string, seconds: number, option?: ExpireOption | undefined) => Pipeline<[...TCommands, Command<any, 0 | 1>]>;
|
|
1942
1989
|
/**
|
|
1943
1990
|
* @see https://redis.io/commands/expireat
|
|
1944
1991
|
*/
|
|
1945
|
-
expireat: (key: string, unix: number, option?:
|
|
1992
|
+
expireat: (key: string, unix: number, option?: ExpireOption | undefined) => Pipeline<[...TCommands, Command<any, 0 | 1>]>;
|
|
1946
1993
|
/**
|
|
1947
1994
|
* @see https://redis.io/commands/flushall
|
|
1948
1995
|
*/
|
|
@@ -2114,7 +2161,39 @@ declare class Pipeline<TCommands extends Command<any, any>[] = []> {
|
|
|
2114
2161
|
/**
|
|
2115
2162
|
* @see https://redis.io/commands/hexpire
|
|
2116
2163
|
*/
|
|
2117
|
-
hexpire: (key: string, fields: string | number | (string | number)[], seconds: number, option?:
|
|
2164
|
+
hexpire: (key: string, fields: string | number | (string | number)[], seconds: number, option?: ExpireOption | undefined) => Pipeline<[...TCommands, Command<any, (0 | 1 | 2 | -2)[]>]>;
|
|
2165
|
+
/**
|
|
2166
|
+
* @see https://redis.io/commands/hexpireat
|
|
2167
|
+
*/
|
|
2168
|
+
hexpireat: (key: string, fields: string | number | (string | number)[], timestamp: number, option?: ExpireOption | undefined) => Pipeline<[...TCommands, Command<any, (0 | 1 | 2 | -2)[]>]>;
|
|
2169
|
+
/**
|
|
2170
|
+
* @see https://redis.io/commands/hexpiretime
|
|
2171
|
+
*/
|
|
2172
|
+
hexpiretime: (key: string, fields: string | number | (string | number)[]) => Pipeline<[...TCommands, Command<any, number[]>]>;
|
|
2173
|
+
/**
|
|
2174
|
+
* @see https://redis.io/commands/httl
|
|
2175
|
+
*/
|
|
2176
|
+
httl: (key: string, fields: string | number | (string | number)[]) => Pipeline<[...TCommands, Command<any, number[]>]>;
|
|
2177
|
+
/**
|
|
2178
|
+
* @see https://redis.io/commands/hpexpire
|
|
2179
|
+
*/
|
|
2180
|
+
hpexpire: (key: string, fields: string | number | (string | number)[], milliseconds: number, option?: ExpireOption | undefined) => Pipeline<[...TCommands, Command<any, (0 | 1 | 2 | -2)[]>]>;
|
|
2181
|
+
/**
|
|
2182
|
+
* @see https://redis.io/commands/hpexpireat
|
|
2183
|
+
*/
|
|
2184
|
+
hpexpireat: (key: string, fields: string | number | (string | number)[], timestamp: number, option?: ExpireOption | undefined) => Pipeline<[...TCommands, Command<any, (0 | 1 | 2 | -2)[]>]>;
|
|
2185
|
+
/**
|
|
2186
|
+
* @see https://redis.io/commands/hpexpiretime
|
|
2187
|
+
*/
|
|
2188
|
+
hpexpiretime: (key: string, fields: string | number | (string | number)[]) => Pipeline<[...TCommands, Command<any, number[]>]>;
|
|
2189
|
+
/**
|
|
2190
|
+
* @see https://redis.io/commands/hpttl
|
|
2191
|
+
*/
|
|
2192
|
+
hpttl: (key: string, fields: string | number | (string | number)[]) => Pipeline<[...TCommands, Command<any, number[]>]>;
|
|
2193
|
+
/**
|
|
2194
|
+
* @see https://redis.io/commands/hpersist
|
|
2195
|
+
*/
|
|
2196
|
+
hpersist: (key: string, fields: string | number | (string | number)[]) => Pipeline<[...TCommands, Command<any, (1 | -2 | -1)[]>]>;
|
|
2118
2197
|
/**
|
|
2119
2198
|
* @see https://redis.io/commands/hget
|
|
2120
2199
|
*/
|
|
@@ -2262,11 +2341,11 @@ declare class Pipeline<TCommands extends Command<any, any>[] = []> {
|
|
|
2262
2341
|
/**
|
|
2263
2342
|
* @see https://redis.io/commands/pexpire
|
|
2264
2343
|
*/
|
|
2265
|
-
pexpire: (key: string, milliseconds: number, option?:
|
|
2344
|
+
pexpire: (key: string, milliseconds: number, option?: ExpireOption | undefined) => Pipeline<[...TCommands, Command<any, 0 | 1>]>;
|
|
2266
2345
|
/**
|
|
2267
2346
|
* @see https://redis.io/commands/pexpireat
|
|
2268
2347
|
*/
|
|
2269
|
-
pexpireat: (key: string, unix: number, option?:
|
|
2348
|
+
pexpireat: (key: string, unix: number, option?: ExpireOption | undefined) => Pipeline<[...TCommands, Command<any, 0 | 1>]>;
|
|
2270
2349
|
/**
|
|
2271
2350
|
* @see https://redis.io/commands/pfadd
|
|
2272
2351
|
*/
|
|
@@ -3099,11 +3178,11 @@ declare class Redis {
|
|
|
3099
3178
|
/**
|
|
3100
3179
|
* @see https://redis.io/commands/expire
|
|
3101
3180
|
*/
|
|
3102
|
-
expire: (key: string, seconds: number, option?:
|
|
3181
|
+
expire: (key: string, seconds: number, option?: ExpireOption | undefined) => Promise<0 | 1>;
|
|
3103
3182
|
/**
|
|
3104
3183
|
* @see https://redis.io/commands/expireat
|
|
3105
3184
|
*/
|
|
3106
|
-
expireat: (key: string, unix: number, option?:
|
|
3185
|
+
expireat: (key: string, unix: number, option?: ExpireOption | undefined) => Promise<0 | 1>;
|
|
3107
3186
|
/**
|
|
3108
3187
|
* @see https://redis.io/commands/flushall
|
|
3109
3188
|
*/
|
|
@@ -3275,7 +3354,39 @@ declare class Redis {
|
|
|
3275
3354
|
/**
|
|
3276
3355
|
* @see https://redis.io/commands/hexpire
|
|
3277
3356
|
*/
|
|
3278
|
-
hexpire: (key: string, fields: string | number | (string | number)[], seconds: number, option?:
|
|
3357
|
+
hexpire: (key: string, fields: string | number | (string | number)[], seconds: number, option?: ExpireOption | undefined) => Promise<(0 | 1 | 2 | -2)[]>;
|
|
3358
|
+
/**
|
|
3359
|
+
* @see https://redis.io/commands/hexpireat
|
|
3360
|
+
*/
|
|
3361
|
+
hexpireat: (key: string, fields: string | number | (string | number)[], timestamp: number, option?: ExpireOption | undefined) => Promise<(0 | 1 | 2 | -2)[]>;
|
|
3362
|
+
/**
|
|
3363
|
+
* @see https://redis.io/commands/hexpiretime
|
|
3364
|
+
*/
|
|
3365
|
+
hexpiretime: (key: string, fields: string | number | (string | number)[]) => Promise<number[]>;
|
|
3366
|
+
/**
|
|
3367
|
+
* @see https://redis.io/commands/httl
|
|
3368
|
+
*/
|
|
3369
|
+
httl: (key: string, fields: string | number | (string | number)[]) => Promise<number[]>;
|
|
3370
|
+
/**
|
|
3371
|
+
* @see https://redis.io/commands/hpexpire
|
|
3372
|
+
*/
|
|
3373
|
+
hpexpire: (key: string, fields: string | number | (string | number)[], milliseconds: number, option?: ExpireOption | undefined) => Promise<(0 | 1 | 2 | -2)[]>;
|
|
3374
|
+
/**
|
|
3375
|
+
* @see https://redis.io/commands/hpexpireat
|
|
3376
|
+
*/
|
|
3377
|
+
hpexpireat: (key: string, fields: string | number | (string | number)[], timestamp: number, option?: ExpireOption | undefined) => Promise<(0 | 1 | 2 | -2)[]>;
|
|
3378
|
+
/**
|
|
3379
|
+
* @see https://redis.io/commands/hpexpiretime
|
|
3380
|
+
*/
|
|
3381
|
+
hpexpiretime: (key: string, fields: string | number | (string | number)[]) => Promise<number[]>;
|
|
3382
|
+
/**
|
|
3383
|
+
* @see https://redis.io/commands/hpttl
|
|
3384
|
+
*/
|
|
3385
|
+
hpttl: (key: string, fields: string | number | (string | number)[]) => Promise<number[]>;
|
|
3386
|
+
/**
|
|
3387
|
+
* @see https://redis.io/commands/hpersist
|
|
3388
|
+
*/
|
|
3389
|
+
hpersist: (key: string, fields: string | number | (string | number)[]) => Promise<(1 | -2 | -1)[]>;
|
|
3279
3390
|
/**
|
|
3280
3391
|
* @see https://redis.io/commands/hget
|
|
3281
3392
|
*/
|
|
@@ -3427,11 +3538,11 @@ declare class Redis {
|
|
|
3427
3538
|
/**
|
|
3428
3539
|
* @see https://redis.io/commands/pexpire
|
|
3429
3540
|
*/
|
|
3430
|
-
pexpire: (key: string, milliseconds: number, option?:
|
|
3541
|
+
pexpire: (key: string, milliseconds: number, option?: ExpireOption | undefined) => Promise<0 | 1>;
|
|
3431
3542
|
/**
|
|
3432
3543
|
* @see https://redis.io/commands/pexpireat
|
|
3433
3544
|
*/
|
|
3434
|
-
pexpireat: (key: string, unix: number, option?:
|
|
3545
|
+
pexpireat: (key: string, unix: number, option?: ExpireOption | undefined) => Promise<0 | 1>;
|
|
3435
3546
|
/**
|
|
3436
3547
|
* @see https://redis.io/commands/pfadd
|
|
3437
3548
|
*/
|
|
@@ -3858,4 +3969,4 @@ declare class ZMScoreCommand<TData> extends Command<string[] | null, number[] |
|
|
|
3858
3969
|
constructor(cmd: [key: string, members: TData[]], opts?: CommandOptions<string[] | null, number[] | null>);
|
|
3859
3970
|
}
|
|
3860
3971
|
|
|
3861
|
-
export {
|
|
3972
|
+
export { HGetCommand as $, AppendCommand as A, BitCountCommand as B, CopyCommand as C, DBSizeCommand as D, EchoCommand as E, FlushAllCommand as F, GeoAddCommand as G, GetCommand as H, GetBitCommand as I, GetDelCommand as J, GetExCommand as K, GetRangeCommand as L, GetSetCommand as M, HDelCommand as N, HExistsCommand as O, Pipeline as P, HExpireCommand as Q, type RedisOptions as R, HExpireAtCommand as S, HExpireTimeCommand as T, type UpstashRequest as U, HTtlCommand as V, HPExpireCommand as W, HPExpireAtCommand as X, HPExpireTimeCommand as Y, HPTtlCommand as Z, HPersistCommand as _, type RequesterConfig as a, RPopCommand as a$, HGetAllCommand as a0, HIncrByCommand as a1, HIncrByFloatCommand as a2, HKeysCommand as a3, HLenCommand as a4, HMGetCommand as a5, HMSetCommand as a6, HRandFieldCommand as a7, HScanCommand as a8, HSetCommand as a9, JsonToggleCommand as aA, JsonTypeCommand as aB, KeysCommand as aC, LIndexCommand as aD, LInsertCommand as aE, LLenCommand as aF, LMoveCommand as aG, LPopCommand as aH, LPushCommand as aI, LPushXCommand as aJ, LRangeCommand as aK, LRemCommand as aL, LSetCommand as aM, LTrimCommand as aN, MGetCommand as aO, MSetCommand as aP, MSetNXCommand as aQ, PersistCommand as aR, PExpireCommand as aS, PExpireAtCommand as aT, PingCommand as aU, PSetEXCommand as aV, PTtlCommand as aW, PublishCommand as aX, RandomKeyCommand as aY, RenameCommand as aZ, RenameNXCommand as a_, HSetNXCommand as aa, HStrLenCommand as ab, HValsCommand as ac, IncrCommand as ad, IncrByCommand as ae, IncrByFloatCommand as af, JsonArrAppendCommand as ag, JsonArrIndexCommand as ah, JsonArrInsertCommand as ai, JsonArrLenCommand as aj, JsonArrPopCommand as ak, JsonArrTrimCommand as al, JsonClearCommand as am, JsonDelCommand as an, JsonForgetCommand as ao, JsonGetCommand as ap, JsonMergeCommand as aq, JsonMGetCommand as ar, JsonNumIncrByCommand as as, JsonNumMultByCommand as at, JsonObjKeysCommand as au, JsonObjLenCommand as av, JsonRespCommand as aw, JsonSetCommand as ax, JsonStrAppendCommand as ay, JsonStrLenCommand as az, Redis as b, ZUnionStoreCommand as b$, RPushCommand as b0, RPushXCommand as b1, SAddCommand as b2, ScanCommand as b3, type ScanCommandOptions as b4, SCardCommand as b5, ScriptExistsCommand as b6, ScriptFlushCommand as b7, ScriptLoadCommand as b8, SDiffCommand as b9, XAddCommand as bA, XRangeCommand as bB, type ScoreMember as bC, type ZAddCommandOptions as bD, ZAddCommand as bE, ZCardCommand as bF, ZCountCommand as bG, ZDiffStoreCommand as bH, ZIncrByCommand as bI, ZInterStoreCommand as bJ, type ZInterStoreCommandOptions as bK, ZLexCountCommand as bL, ZMScoreCommand as bM, ZPopMaxCommand as bN, ZPopMinCommand as bO, ZRangeCommand as bP, type ZRangeCommandOptions as bQ, ZRankCommand as bR, ZRemCommand as bS, ZRemRangeByLexCommand as bT, ZRemRangeByRankCommand as bU, ZRemRangeByScoreCommand as bV, ZRevRankCommand as bW, ZScanCommand as bX, ZScoreCommand as bY, ZUnionCommand as bZ, type ZUnionCommandOptions as b_, SDiffStoreCommand as ba, SetCommand as bb, type SetCommandOptions as bc, SetBitCommand as bd, SetExCommand as be, SetNxCommand as bf, SetRangeCommand as bg, SInterCommand as bh, SInterStoreCommand as bi, SIsMemberCommand as bj, SMembersCommand as bk, SMIsMemberCommand as bl, SMoveCommand as bm, SPopCommand as bn, SRandMemberCommand as bo, SRemCommand as bp, SScanCommand as bq, StrLenCommand as br, SUnionCommand as bs, SUnionStoreCommand as bt, TimeCommand as bu, TouchCommand as bv, TtlCommand as bw, type Type as bx, TypeCommand as by, UnlinkCommand as bz, type UpstashResponse as c, type ZUnionStoreCommandOptions as c0, type Requester as d, error as e, BitOpCommand as f, BitPosCommand as g, DecrCommand as h, DecrByCommand as i, DelCommand as j, EvalROCommand as k, EvalCommand as l, EvalshaROCommand as m, EvalshaCommand as n, ExistsCommand as o, ExpireCommand as p, type ExpireOption as q, ExpireAtCommand as r, FlushDBCommand as s, type GeoAddCommandOptions as t, type GeoMember as u, GeoDistCommand as v, GeoHashCommand as w, GeoPosCommand as x, GeoSearchCommand as y, GeoSearchStoreCommand as z };
|