@upstash/redis 1.34.6 → 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.
@@ -308,6 +308,11 @@ declare class GeoAddCommand<TMemberType = string> extends Command<number | null,
308
308
  ], opts?: CommandOptions<number | null, number | null>);
309
309
  }
310
310
 
311
+ type ExpireOption = "NX" | "nx" | "XX" | "xx" | "GT" | "gt" | "LT" | "lt";
312
+ declare class ExpireCommand extends Command<"0" | "1", 0 | 1> {
313
+ constructor(cmd: [key: string, seconds: number, option?: ExpireOption], opts?: CommandOptions<"0" | "1", 0 | 1>);
314
+ }
315
+
311
316
  /**
312
317
  * @see https://redis.io/commands/append
313
318
  */
@@ -404,6 +409,13 @@ declare class EchoCommand extends Command<string, string> {
404
409
  constructor(cmd: [message: string], opts?: CommandOptions<string, string>);
405
410
  }
406
411
 
412
+ /**
413
+ * @see https://redis.io/commands/eval_ro
414
+ */
415
+ declare class EvalROCommand<TArgs extends unknown[], TData> extends Command<unknown, TData> {
416
+ constructor([script, keys, args]: [script: string, keys: string[], args: TArgs], opts?: CommandOptions<unknown, TData>);
417
+ }
418
+
407
419
  /**
408
420
  * @see https://redis.io/commands/eval
409
421
  */
@@ -411,6 +423,13 @@ declare class EvalCommand<TArgs extends unknown[], TData> extends Command<unknow
411
423
  constructor([script, keys, args]: [script: string, keys: string[], args: TArgs], opts?: CommandOptions<unknown, TData>);
412
424
  }
413
425
 
426
+ /**
427
+ * @see https://redis.io/commands/evalsha_ro
428
+ */
429
+ declare class EvalshaROCommand<TArgs extends unknown[], TData> extends Command<unknown, TData> {
430
+ constructor([sha, keys, args]: [sha: string, keys: string[], args?: TArgs], opts?: CommandOptions<unknown, TData>);
431
+ }
432
+
414
433
  /**
415
434
  * @see https://redis.io/commands/evalsha
416
435
  */
@@ -425,16 +444,11 @@ declare class ExistsCommand extends Command<number, number> {
425
444
  constructor(cmd: [...keys: string[]], opts?: CommandOptions<number, number>);
426
445
  }
427
446
 
428
- type ExpireOptions = "NX" | "nx" | "XX" | "xx" | "GT" | "gt" | "LT" | "lt";
429
- declare class ExpireCommand extends Command<"0" | "1", 0 | 1> {
430
- constructor(cmd: [key: string, seconds: number, option?: ExpireOptions], opts?: CommandOptions<"0" | "1", 0 | 1>);
431
- }
432
-
433
447
  /**
434
448
  * @see https://redis.io/commands/expireat
435
449
  */
436
450
  declare class ExpireAtCommand extends Command<"0" | "1", 0 | 1> {
437
- constructor(cmd: [key: string, unix: number], opts?: CommandOptions<"0" | "1", 0 | 1>);
451
+ constructor(cmd: [key: string, unix: number, option?: ExpireOption], opts?: CommandOptions<"0" | "1", 0 | 1>);
438
452
  }
439
453
 
440
454
  /**
@@ -681,6 +695,58 @@ declare class HExistsCommand extends Command<number, number> {
681
695
  constructor(cmd: [key: string, field: string], opts?: CommandOptions<number, number>);
682
696
  }
683
697
 
698
+ declare class HExpireCommand extends Command<(-2 | 0 | 1 | 2)[], (-2 | 0 | 1 | 2)[]> {
699
+ constructor(cmd: [
700
+ key: string,
701
+ fields: (string | number) | (string | number)[],
702
+ seconds: number,
703
+ option?: ExpireOption
704
+ ], opts?: CommandOptions<(-2 | 0 | 1 | 2)[], (-2 | 0 | 1 | 2)[]>);
705
+ }
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
+
684
750
  /**
685
751
  * @see https://redis.io/commands/hget
686
752
  */
@@ -788,6 +854,10 @@ declare class HStrLenCommand extends Command<number, number> {
788
854
  constructor(cmd: [key: string, field: string], opts?: CommandOptions<number, number>);
789
855
  }
790
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
+
791
861
  /**
792
862
  * @see https://redis.io/commands/hvals
793
863
  */
@@ -894,6 +964,13 @@ declare class JsonGetCommand<TData extends (unknown | Record<string, unknown>) |
894
964
  ] | [key: string, ...path: string[]], opts?: CommandOptions<TData | null, TData | null>);
895
965
  }
896
966
 
967
+ /**
968
+ * @see https://redis.io/commands/json.merge
969
+ */
970
+ declare class JsonMergeCommand<TData extends string | number | Record<string, unknown> | Array<unknown>> extends Command<"OK" | null, "OK" | null> {
971
+ constructor(cmd: [key: string, path: string, value: TData], opts?: CommandOptions<"OK" | null, "OK" | null>);
972
+ }
973
+
897
974
  /**
898
975
  * @see https://redis.io/commands/json.mget
899
976
  */
@@ -1096,14 +1173,14 @@ declare class PersistCommand extends Command<"0" | "1", 0 | 1> {
1096
1173
  * @see https://redis.io/commands/pexpire
1097
1174
  */
1098
1175
  declare class PExpireCommand extends Command<"0" | "1", 0 | 1> {
1099
- constructor(cmd: [key: string, milliseconds: number], opts?: CommandOptions<"0" | "1", 0 | 1>);
1176
+ constructor(cmd: [key: string, milliseconds: number, option?: ExpireOption], opts?: CommandOptions<"0" | "1", 0 | 1>);
1100
1177
  }
1101
1178
 
1102
1179
  /**
1103
1180
  * @see https://redis.io/commands/pexpireat
1104
1181
  */
1105
1182
  declare class PExpireAtCommand extends Command<"0" | "1", 0 | 1> {
1106
- constructor(cmd: [key: string, unix: number], opts?: CommandOptions<"0" | "1", 0 | 1>);
1183
+ constructor(cmd: [key: string, unix: number, option?: ExpireOption], opts?: CommandOptions<"0" | "1", 0 | 1>);
1107
1184
  }
1108
1185
 
1109
1186
  /**
@@ -1885,10 +1962,18 @@ declare class Pipeline<TCommands extends Command<any, any>[] = []> {
1885
1962
  * @see https://redis.io/commands/echo
1886
1963
  */
1887
1964
  echo: (message: string) => Pipeline<[...TCommands, Command<any, string>]>;
1965
+ /**
1966
+ * @see https://redis.io/commands/eval_ro
1967
+ */
1968
+ evalRo: <TArgs extends unknown[], TData = unknown>(script: string, keys: string[], args: TArgs) => Pipeline<[...TCommands, Command<any, TData>]>;
1888
1969
  /**
1889
1970
  * @see https://redis.io/commands/eval
1890
1971
  */
1891
1972
  eval: <TArgs extends unknown[], TData = unknown>(script: string, keys: string[], args: TArgs) => Pipeline<[...TCommands, Command<any, TData>]>;
1973
+ /**
1974
+ * @see https://redis.io/commands/evalsha_ro
1975
+ */
1976
+ evalshaRo: <TArgs extends unknown[], TData = unknown>(sha1: string, keys: string[], args: TArgs) => Pipeline<[...TCommands, Command<any, TData>]>;
1892
1977
  /**
1893
1978
  * @see https://redis.io/commands/evalsha
1894
1979
  */
@@ -1900,11 +1985,11 @@ declare class Pipeline<TCommands extends Command<any, any>[] = []> {
1900
1985
  /**
1901
1986
  * @see https://redis.io/commands/expire
1902
1987
  */
1903
- expire: (key: string, seconds: number, option?: ("NX" | "nx" | "XX" | "xx" | "GT" | "gt" | "LT" | "lt") | undefined) => Pipeline<[...TCommands, Command<any, 0 | 1>]>;
1988
+ expire: (key: string, seconds: number, option?: ExpireOption | undefined) => Pipeline<[...TCommands, Command<any, 0 | 1>]>;
1904
1989
  /**
1905
1990
  * @see https://redis.io/commands/expireat
1906
1991
  */
1907
- expireat: (key: string, unix: number) => Pipeline<[...TCommands, Command<any, 0 | 1>]>;
1992
+ expireat: (key: string, unix: number, option?: ExpireOption | undefined) => Pipeline<[...TCommands, Command<any, 0 | 1>]>;
1908
1993
  /**
1909
1994
  * @see https://redis.io/commands/flushall
1910
1995
  */
@@ -2073,6 +2158,42 @@ declare class Pipeline<TCommands extends Command<any, any>[] = []> {
2073
2158
  * @see https://redis.io/commands/hexists
2074
2159
  */
2075
2160
  hexists: (key: string, field: string) => Pipeline<[...TCommands, Command<any, number>]>;
2161
+ /**
2162
+ * @see https://redis.io/commands/hexpire
2163
+ */
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)[]>]>;
2076
2197
  /**
2077
2198
  * @see https://redis.io/commands/hget
2078
2199
  */
@@ -2220,11 +2341,11 @@ declare class Pipeline<TCommands extends Command<any, any>[] = []> {
2220
2341
  /**
2221
2342
  * @see https://redis.io/commands/pexpire
2222
2343
  */
2223
- pexpire: (key: string, milliseconds: number) => Pipeline<[...TCommands, Command<any, 0 | 1>]>;
2344
+ pexpire: (key: string, milliseconds: number, option?: ExpireOption | undefined) => Pipeline<[...TCommands, Command<any, 0 | 1>]>;
2224
2345
  /**
2225
2346
  * @see https://redis.io/commands/pexpireat
2226
2347
  */
2227
- pexpireat: (key: string, unix: number) => Pipeline<[...TCommands, Command<any, 0 | 1>]>;
2348
+ pexpireat: (key: string, unix: number, option?: ExpireOption | undefined) => Pipeline<[...TCommands, Command<any, 0 | 1>]>;
2228
2349
  /**
2229
2350
  * @see https://redis.io/commands/pfadd
2230
2351
  */
@@ -2646,6 +2767,10 @@ declare class Pipeline<TCommands extends Command<any, any>[] = []> {
2646
2767
  * @see https://redis.io/commands/json.get
2647
2768
  */
2648
2769
  get: (...args: CommandArgs<typeof JsonGetCommand>) => Pipeline<[...TCommands, Command<any, any>]>;
2770
+ /**
2771
+ * @see https://redis.io/commands/json.merge
2772
+ */
2773
+ merge: (key: string, path: string, value: string | number | unknown[] | Record<string, unknown>) => Pipeline<[...TCommands, Command<any, "OK" | null>]>;
2649
2774
  /**
2650
2775
  * @see https://redis.io/commands/json.mget
2651
2776
  */
@@ -2745,6 +2870,48 @@ declare class Script<TResult = unknown> {
2745
2870
  private digest;
2746
2871
  }
2747
2872
 
2873
+ /**
2874
+ * Creates a new script.
2875
+ *
2876
+ * Scripts offer the ability to optimistically try to execute a script without having to send the
2877
+ * entire script to the server. If the script is loaded on the server, it tries again by sending
2878
+ * the entire script. Afterwards, the script is cached on the server.
2879
+ *
2880
+ * @example
2881
+ * ```ts
2882
+ * const redis = new Redis({...})
2883
+ *
2884
+ * const script = redis.createScript<string>("return ARGV[1];", { readOnly: true })
2885
+ * const arg1 = await script.evalRo([], ["Hello World"])
2886
+ * expect(arg1, "Hello World")
2887
+ * ```
2888
+ */
2889
+ declare class ScriptRO<TResult = unknown> {
2890
+ readonly script: string;
2891
+ readonly sha1: string;
2892
+ private readonly redis;
2893
+ constructor(redis: Redis, script: string);
2894
+ /**
2895
+ * Send an `EVAL_RO` command to redis.
2896
+ */
2897
+ evalRo(keys: string[], args: string[]): Promise<TResult>;
2898
+ /**
2899
+ * Calculates the sha1 hash of the script and then calls `EVALSHA_RO`.
2900
+ */
2901
+ evalshaRo(keys: string[], args: string[]): Promise<TResult>;
2902
+ /**
2903
+ * Optimistically try to run `EVALSHA_RO` first.
2904
+ * If the script is not loaded in redis, it will fall back and try again with `EVAL_RO`.
2905
+ *
2906
+ * Following calls will be able to use the cached script
2907
+ */
2908
+ exec(keys: string[], args: string[]): Promise<TResult>;
2909
+ /**
2910
+ * Compute the sha1 hash of the script and return its hex representation.
2911
+ */
2912
+ private digest;
2913
+ }
2914
+
2748
2915
  /**
2749
2916
  * Serverless redis client for upstash.
2750
2917
  */
@@ -2808,6 +2975,10 @@ declare class Redis {
2808
2975
  * @see https://redis.io/commands/json.get
2809
2976
  */
2810
2977
  get: <TData>(...args: CommandArgs<typeof JsonGetCommand>) => Promise<TData | null>;
2978
+ /**
2979
+ * @see https://redis.io/commands/json.merge
2980
+ */
2981
+ merge: (key: string, path: string, value: string | number | unknown[] | Record<string, unknown>) => Promise<"OK" | null>;
2811
2982
  /**
2812
2983
  * @see https://redis.io/commands/json.mget
2813
2984
  */
@@ -2871,7 +3042,37 @@ declare class Redis {
2871
3042
  * Technically this is not private, we can hide it from intellisense by doing this
2872
3043
  */
2873
3044
  protected addTelemetry: (telemetry: Telemetry) => void;
2874
- createScript(script: string): Script;
3045
+ /**
3046
+ * Creates a new script.
3047
+ *
3048
+ * Scripts offer the ability to optimistically try to execute a script without having to send the
3049
+ * entire script to the server. If the script is loaded on the server, it tries again by sending
3050
+ * the entire script. Afterwards, the script is cached on the server.
3051
+ *
3052
+ * @param script - The script to create
3053
+ * @param opts - Optional options to pass to the script `{ readonly?: boolean }`
3054
+ * @returns A new script
3055
+ *
3056
+ * @example
3057
+ * ```ts
3058
+ * const redis = new Redis({...})
3059
+ *
3060
+ * const script = redis.createScript<string>("return ARGV[1];")
3061
+ * const arg1 = await script.eval([], ["Hello World"])
3062
+ * expect(arg1, "Hello World")
3063
+ * ```
3064
+ * @example
3065
+ * ```ts
3066
+ * const redis = new Redis({...})
3067
+ *
3068
+ * const script = redis.createScript<string>("return ARGV[1];", { readonly: true })
3069
+ * const arg1 = await script.evalRo([], ["Hello World"])
3070
+ * expect(arg1, "Hello World")
3071
+ * ```
3072
+ */
3073
+ createScript<TResult = unknown, TReadonly extends boolean = false>(script: string, opts?: {
3074
+ readonly?: TReadonly;
3075
+ }): TReadonly extends true ? ScriptRO<TResult> : Script<TResult>;
2875
3076
  /**
2876
3077
  * Create a new pipeline that allows you to send requests in bulk.
2877
3078
  *
@@ -2950,10 +3151,18 @@ declare class Redis {
2950
3151
  * @see https://redis.io/commands/echo
2951
3152
  */
2952
3153
  echo: (message: string) => Promise<string>;
3154
+ /**
3155
+ * @see https://redis.io/commands/eval_ro
3156
+ */
3157
+ evalRo: <TArgs extends unknown[], TData = unknown>(script: string, keys: string[], args: TArgs) => Promise<TData>;
2953
3158
  /**
2954
3159
  * @see https://redis.io/commands/eval
2955
3160
  */
2956
3161
  eval: <TArgs extends unknown[], TData = unknown>(script: string, keys: string[], args: TArgs) => Promise<TData>;
3162
+ /**
3163
+ * @see https://redis.io/commands/evalsha_ro
3164
+ */
3165
+ evalshaRo: <TArgs extends unknown[], TData = unknown>(sha1: string, keys: string[], args: TArgs) => Promise<TData>;
2957
3166
  /**
2958
3167
  * @see https://redis.io/commands/evalsha
2959
3168
  */
@@ -2969,11 +3178,11 @@ declare class Redis {
2969
3178
  /**
2970
3179
  * @see https://redis.io/commands/expire
2971
3180
  */
2972
- expire: (key: string, seconds: number, option?: ("NX" | "nx" | "XX" | "xx" | "GT" | "gt" | "LT" | "lt") | undefined) => Promise<0 | 1>;
3181
+ expire: (key: string, seconds: number, option?: ExpireOption | undefined) => Promise<0 | 1>;
2973
3182
  /**
2974
3183
  * @see https://redis.io/commands/expireat
2975
3184
  */
2976
- expireat: (key: string, unix: number) => Promise<0 | 1>;
3185
+ expireat: (key: string, unix: number, option?: ExpireOption | undefined) => Promise<0 | 1>;
2977
3186
  /**
2978
3187
  * @see https://redis.io/commands/flushall
2979
3188
  */
@@ -3142,6 +3351,42 @@ declare class Redis {
3142
3351
  * @see https://redis.io/commands/hexists
3143
3352
  */
3144
3353
  hexists: (key: string, field: string) => Promise<number>;
3354
+ /**
3355
+ * @see https://redis.io/commands/hexpire
3356
+ */
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)[]>;
3145
3390
  /**
3146
3391
  * @see https://redis.io/commands/hget
3147
3392
  */
@@ -3293,11 +3538,11 @@ declare class Redis {
3293
3538
  /**
3294
3539
  * @see https://redis.io/commands/pexpire
3295
3540
  */
3296
- pexpire: (key: string, milliseconds: number) => Promise<0 | 1>;
3541
+ pexpire: (key: string, milliseconds: number, option?: ExpireOption | undefined) => Promise<0 | 1>;
3297
3542
  /**
3298
3543
  * @see https://redis.io/commands/pexpireat
3299
3544
  */
3300
- pexpireat: (key: string, unix: number) => Promise<0 | 1>;
3545
+ pexpireat: (key: string, unix: number, option?: ExpireOption | undefined) => Promise<0 | 1>;
3301
3546
  /**
3302
3547
  * @see https://redis.io/commands/pfadd
3303
3548
  */
@@ -3724,4 +3969,4 @@ declare class ZMScoreCommand<TData> extends Command<string[] | null, number[] |
3724
3969
  constructor(cmd: [key: string, members: TData[]], opts?: CommandOptions<string[] | null, number[] | null>);
3725
3970
  }
3726
3971
 
3727
- export { HStrLenCommand as $, AppendCommand as A, BitCountCommand as B, CopyCommand as C, DBSizeCommand as D, EchoCommand as E, FlushAllCommand as F, GeoAddCommand as G, GetExCommand as H, GetRangeCommand as I, GetSetCommand as J, HDelCommand as K, HExistsCommand as L, HGetCommand as M, HGetAllCommand as N, HIncrByCommand as O, Pipeline as P, HIncrByFloatCommand as Q, type RedisOptions as R, HKeysCommand as S, HLenCommand as T, type UpstashRequest as U, HMGetCommand as V, HMSetCommand as W, HRandFieldCommand as X, HScanCommand as Y, HSetCommand as Z, HSetNXCommand as _, type RequesterConfig as a, type SetCommandOptions as a$, HValsCommand as a0, IncrCommand as a1, IncrByCommand as a2, IncrByFloatCommand as a3, JsonArrAppendCommand as a4, JsonArrIndexCommand as a5, JsonArrInsertCommand as a6, JsonArrLenCommand as a7, JsonArrPopCommand as a8, JsonArrTrimCommand as a9, LTrimCommand as aA, MGetCommand as aB, MSetCommand as aC, MSetNXCommand as aD, PersistCommand as aE, PExpireCommand as aF, PExpireAtCommand as aG, PingCommand as aH, PSetEXCommand as aI, PTtlCommand as aJ, PublishCommand as aK, RandomKeyCommand as aL, RenameCommand as aM, RenameNXCommand as aN, RPopCommand as aO, RPushCommand as aP, RPushXCommand as aQ, SAddCommand as aR, ScanCommand as aS, type ScanCommandOptions as aT, SCardCommand as aU, ScriptExistsCommand as aV, ScriptFlushCommand as aW, ScriptLoadCommand as aX, SDiffCommand as aY, SDiffStoreCommand as aZ, SetCommand as a_, JsonClearCommand as aa, JsonDelCommand as ab, JsonForgetCommand as ac, JsonGetCommand as ad, JsonMGetCommand as ae, JsonNumIncrByCommand as af, JsonNumMultByCommand as ag, JsonObjKeysCommand as ah, JsonObjLenCommand as ai, JsonRespCommand as aj, JsonSetCommand as ak, JsonStrAppendCommand as al, JsonStrLenCommand as am, JsonToggleCommand as an, JsonTypeCommand as ao, KeysCommand as ap, LIndexCommand as aq, LInsertCommand as ar, LLenCommand as as, LMoveCommand as at, LPopCommand as au, LPushCommand as av, LPushXCommand as aw, LRangeCommand as ax, LRemCommand as ay, LSetCommand as az, Redis as b, SetBitCommand as b0, SetExCommand as b1, SetNxCommand as b2, SetRangeCommand as b3, SInterCommand as b4, SInterStoreCommand as b5, SIsMemberCommand as b6, SMembersCommand as b7, SMIsMemberCommand as b8, SMoveCommand as b9, ZPopMaxCommand as bA, ZPopMinCommand as bB, ZRangeCommand as bC, type ZRangeCommandOptions as bD, ZRankCommand as bE, ZRemCommand as bF, ZRemRangeByLexCommand as bG, ZRemRangeByRankCommand as bH, ZRemRangeByScoreCommand as bI, ZRevRankCommand as bJ, ZScanCommand as bK, ZScoreCommand as bL, ZUnionCommand as bM, type ZUnionCommandOptions as bN, ZUnionStoreCommand as bO, type ZUnionStoreCommandOptions as bP, SPopCommand as ba, SRandMemberCommand as bb, SRemCommand as bc, SScanCommand as bd, StrLenCommand as be, SUnionCommand as bf, SUnionStoreCommand as bg, TimeCommand as bh, TouchCommand as bi, TtlCommand as bj, type Type as bk, TypeCommand as bl, UnlinkCommand as bm, XAddCommand as bn, XRangeCommand as bo, type ScoreMember as bp, type ZAddCommandOptions as bq, ZAddCommand as br, ZCardCommand as bs, ZCountCommand as bt, ZDiffStoreCommand as bu, ZIncrByCommand as bv, ZInterStoreCommand as bw, type ZInterStoreCommandOptions as bx, ZLexCountCommand as by, ZMScoreCommand as bz, type UpstashResponse as c, type Requester as d, error as e, BitOpCommand as f, BitPosCommand as g, DecrCommand as h, DecrByCommand as i, DelCommand as j, EvalCommand as k, EvalshaCommand as l, ExistsCommand as m, ExpireCommand as n, ExpireAtCommand as o, FlushDBCommand as p, type GeoAddCommandOptions as q, type GeoMember as r, GeoDistCommand as s, GeoHashCommand as t, GeoPosCommand as u, GeoSearchCommand as v, GeoSearchStoreCommand as w, GetCommand as x, GetBitCommand as y, GetDelCommand as z };
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 };