@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.
package/cloudflare.js CHANGED
@@ -572,6 +572,13 @@ var EchoCommand = class extends Command {
572
572
  }
573
573
  };
574
574
 
575
+ // pkg/commands/evalRo.ts
576
+ var EvalROCommand = class extends Command {
577
+ constructor([script, keys, args], opts) {
578
+ super(["eval_ro", script, keys.length, ...keys, ...args ?? []], opts);
579
+ }
580
+ };
581
+
575
582
  // pkg/commands/eval.ts
576
583
  var EvalCommand = class extends Command {
577
584
  constructor([script, keys, args], opts) {
@@ -579,6 +586,13 @@ var EvalCommand = class extends Command {
579
586
  }
580
587
  };
581
588
 
589
+ // pkg/commands/evalshaRo.ts
590
+ var EvalshaROCommand = class extends Command {
591
+ constructor([sha, keys, args], opts) {
592
+ super(["evalsha_ro", sha, keys.length, ...keys, ...args ?? []], opts);
593
+ }
594
+ };
595
+
582
596
  // pkg/commands/evalsha.ts
583
597
  var EvalshaCommand = class extends Command {
584
598
  constructor([sha, keys, args], opts) {
@@ -859,6 +873,122 @@ var HExistsCommand = class extends Command {
859
873
  }
860
874
  };
861
875
 
876
+ // pkg/commands/hexpire.ts
877
+ var HExpireCommand = class extends Command {
878
+ constructor(cmd, opts) {
879
+ const [key, fields, seconds, option] = cmd;
880
+ const fieldArray = Array.isArray(fields) ? fields : [fields];
881
+ super(
882
+ [
883
+ "hexpire",
884
+ key,
885
+ seconds,
886
+ ...option ? [option] : [],
887
+ "FIELDS",
888
+ fieldArray.length,
889
+ ...fieldArray
890
+ ],
891
+ opts
892
+ );
893
+ }
894
+ };
895
+
896
+ // pkg/commands/hexpireat.ts
897
+ var HExpireAtCommand = class extends Command {
898
+ constructor(cmd, opts) {
899
+ const [key, fields, timestamp, option] = cmd;
900
+ const fieldArray = Array.isArray(fields) ? fields : [fields];
901
+ super(
902
+ [
903
+ "hexpireat",
904
+ key,
905
+ timestamp,
906
+ ...option ? [option] : [],
907
+ "FIELDS",
908
+ fieldArray.length,
909
+ ...fieldArray
910
+ ],
911
+ opts
912
+ );
913
+ }
914
+ };
915
+
916
+ // pkg/commands/hexpiretime.ts
917
+ var HExpireTimeCommand = class extends Command {
918
+ constructor(cmd, opts) {
919
+ const [key, fields] = cmd;
920
+ const fieldArray = Array.isArray(fields) ? fields : [fields];
921
+ super(["hexpiretime", key, "FIELDS", fieldArray.length, ...fieldArray], opts);
922
+ }
923
+ };
924
+
925
+ // pkg/commands/hpersist.ts
926
+ var HPersistCommand = class extends Command {
927
+ constructor(cmd, opts) {
928
+ const [key, fields] = cmd;
929
+ const fieldArray = Array.isArray(fields) ? fields : [fields];
930
+ super(["hpersist", key, "FIELDS", fieldArray.length, ...fieldArray], opts);
931
+ }
932
+ };
933
+
934
+ // pkg/commands/hpexpire.ts
935
+ var HPExpireCommand = class extends Command {
936
+ constructor(cmd, opts) {
937
+ const [key, fields, milliseconds, option] = cmd;
938
+ const fieldArray = Array.isArray(fields) ? fields : [fields];
939
+ super(
940
+ [
941
+ "hpexpire",
942
+ key,
943
+ milliseconds,
944
+ ...option ? [option] : [],
945
+ "FIELDS",
946
+ fieldArray.length,
947
+ ...fieldArray
948
+ ],
949
+ opts
950
+ );
951
+ }
952
+ };
953
+
954
+ // pkg/commands/hpexpireat.ts
955
+ var HPExpireAtCommand = class extends Command {
956
+ constructor(cmd, opts) {
957
+ const [key, fields, timestamp, option] = cmd;
958
+ const fieldArray = Array.isArray(fields) ? fields : [fields];
959
+ super(
960
+ [
961
+ "hpexpireat",
962
+ key,
963
+ timestamp,
964
+ ...option ? [option] : [],
965
+ "FIELDS",
966
+ fieldArray.length,
967
+ ...fieldArray
968
+ ],
969
+ opts
970
+ );
971
+ }
972
+ };
973
+
974
+ // pkg/commands/hpexpiretime.ts
975
+ var HPExpireTimeCommand = class extends Command {
976
+ constructor(cmd, opts) {
977
+ const [key, fields] = cmd;
978
+ const fieldArray = Array.isArray(fields) ? fields : [fields];
979
+ super(["hpexpiretime", key, "FIELDS", fieldArray.length, ...fieldArray], opts);
980
+ }
981
+ };
982
+
983
+ // pkg/commands/hpttl.ts
984
+ var HPTtlCommand = class extends Command {
985
+ constructor(cmd, opts) {
986
+ const [key, fields] = cmd;
987
+ const fieldArray = Array.isArray(fields) ? fields : [fields];
988
+ super(["hpttl", key, "FIELDS", fieldArray.length, ...fieldArray], opts);
989
+ }
990
+ };
991
+
862
992
  // pkg/commands/hget.ts
863
993
  var HGetCommand = class extends Command {
864
994
  constructor(cmd, opts) {
@@ -1024,6 +1154,15 @@ var HStrLenCommand = class extends Command {
1024
1154
  }
1025
1155
  };
1026
1156
 
1157
+ // pkg/commands/httl.ts
1158
+ var HTtlCommand = class extends Command {
1159
+ constructor(cmd, opts) {
1160
+ const [key, fields] = cmd;
1161
+ const fieldArray = Array.isArray(fields) ? fields : [fields];
1162
+ super(["httl", key, "FIELDS", fieldArray.length, ...fieldArray], opts);
1163
+ }
1164
+ };
1165
+
1027
1166
  // pkg/commands/hvals.ts
1028
1167
  var HValsCommand = class extends Command {
1029
1168
  constructor(cmd, opts) {
@@ -1143,6 +1282,14 @@ var JsonGetCommand = class extends Command {
1143
1282
  }
1144
1283
  };
1145
1284
 
1285
+ // pkg/commands/json_merge.ts
1286
+ var JsonMergeCommand = class extends Command {
1287
+ constructor(cmd, opts) {
1288
+ const command = ["JSON.MERGE", ...cmd];
1289
+ super(command, opts);
1290
+ }
1291
+ };
1292
+
1146
1293
  // pkg/commands/json_mget.ts
1147
1294
  var JsonMGetCommand = class extends Command {
1148
1295
  constructor(cmd, opts) {
@@ -2614,10 +2761,18 @@ var Pipeline = class {
2614
2761
  * @see https://redis.io/commands/echo
2615
2762
  */
2616
2763
  echo = (...args) => this.chain(new EchoCommand(args, this.commandOptions));
2764
+ /**
2765
+ * @see https://redis.io/commands/eval_ro
2766
+ */
2767
+ evalRo = (...args) => this.chain(new EvalROCommand(args, this.commandOptions));
2617
2768
  /**
2618
2769
  * @see https://redis.io/commands/eval
2619
2770
  */
2620
2771
  eval = (...args) => this.chain(new EvalCommand(args, this.commandOptions));
2772
+ /**
2773
+ * @see https://redis.io/commands/evalsha_ro
2774
+ */
2775
+ evalshaRo = (...args) => this.chain(new EvalshaROCommand(args, this.commandOptions));
2621
2776
  /**
2622
2777
  * @see https://redis.io/commands/evalsha
2623
2778
  */
@@ -2698,6 +2853,42 @@ var Pipeline = class {
2698
2853
  * @see https://redis.io/commands/hexists
2699
2854
  */
2700
2855
  hexists = (...args) => this.chain(new HExistsCommand(args, this.commandOptions));
2856
+ /**
2857
+ * @see https://redis.io/commands/hexpire
2858
+ */
2859
+ hexpire = (...args) => this.chain(new HExpireCommand(args, this.commandOptions));
2860
+ /**
2861
+ * @see https://redis.io/commands/hexpireat
2862
+ */
2863
+ hexpireat = (...args) => this.chain(new HExpireAtCommand(args, this.commandOptions));
2864
+ /**
2865
+ * @see https://redis.io/commands/hexpiretime
2866
+ */
2867
+ hexpiretime = (...args) => this.chain(new HExpireTimeCommand(args, this.commandOptions));
2868
+ /**
2869
+ * @see https://redis.io/commands/httl
2870
+ */
2871
+ httl = (...args) => this.chain(new HTtlCommand(args, this.commandOptions));
2872
+ /**
2873
+ * @see https://redis.io/commands/hpexpire
2874
+ */
2875
+ hpexpire = (...args) => this.chain(new HPExpireCommand(args, this.commandOptions));
2876
+ /**
2877
+ * @see https://redis.io/commands/hpexpireat
2878
+ */
2879
+ hpexpireat = (...args) => this.chain(new HPExpireAtCommand(args, this.commandOptions));
2880
+ /**
2881
+ * @see https://redis.io/commands/hpexpiretime
2882
+ */
2883
+ hpexpiretime = (...args) => this.chain(new HPExpireTimeCommand(args, this.commandOptions));
2884
+ /**
2885
+ * @see https://redis.io/commands/hpttl
2886
+ */
2887
+ hpttl = (...args) => this.chain(new HPTtlCommand(args, this.commandOptions));
2888
+ /**
2889
+ * @see https://redis.io/commands/hpersist
2890
+ */
2891
+ hpersist = (...args) => this.chain(new HPersistCommand(args, this.commandOptions));
2701
2892
  /**
2702
2893
  * @see https://redis.io/commands/hget
2703
2894
  */
@@ -3215,6 +3406,10 @@ var Pipeline = class {
3215
3406
  * @see https://redis.io/commands/json.get
3216
3407
  */
3217
3408
  get: (...args) => this.chain(new JsonGetCommand(args, this.commandOptions)),
3409
+ /**
3410
+ * @see https://redis.io/commands/json.merge
3411
+ */
3412
+ merge: (...args) => this.chain(new JsonMergeCommand(args, this.commandOptions)),
3218
3413
  /**
3219
3414
  * @see https://redis.io/commands/json.mget
3220
3415
  */
@@ -3314,6 +3509,53 @@ var Script = class {
3314
3509
  }
3315
3510
  };
3316
3511
 
3512
+ // pkg/scriptRo.ts
3513
+ var import_enc_hex2 = __toESM(require("crypto-js/enc-hex.js"));
3514
+ var import_sha12 = __toESM(require("crypto-js/sha1.js"));
3515
+ var ScriptRO = class {
3516
+ script;
3517
+ sha1;
3518
+ redis;
3519
+ constructor(redis, script) {
3520
+ this.redis = redis;
3521
+ this.sha1 = this.digest(script);
3522
+ this.script = script;
3523
+ }
3524
+ /**
3525
+ * Send an `EVAL_RO` command to redis.
3526
+ */
3527
+ async evalRo(keys, args) {
3528
+ return await this.redis.evalRo(this.script, keys, args);
3529
+ }
3530
+ /**
3531
+ * Calculates the sha1 hash of the script and then calls `EVALSHA_RO`.
3532
+ */
3533
+ async evalshaRo(keys, args) {
3534
+ return await this.redis.evalshaRo(this.sha1, keys, args);
3535
+ }
3536
+ /**
3537
+ * Optimistically try to run `EVALSHA_RO` first.
3538
+ * If the script is not loaded in redis, it will fall back and try again with `EVAL_RO`.
3539
+ *
3540
+ * Following calls will be able to use the cached script
3541
+ */
3542
+ async exec(keys, args) {
3543
+ const res = await this.redis.evalshaRo(this.sha1, keys, args).catch(async (error) => {
3544
+ if (error instanceof Error && error.message.toLowerCase().includes("noscript")) {
3545
+ return await this.redis.evalRo(this.script, keys, args);
3546
+ }
3547
+ throw error;
3548
+ });
3549
+ return res;
3550
+ }
3551
+ /**
3552
+ * Compute the sha1 hash of the script and return its hex representation.
3553
+ */
3554
+ digest(s) {
3555
+ return import_enc_hex2.default.stringify((0, import_sha12.default)(s));
3556
+ }
3557
+ };
3558
+
3317
3559
  // pkg/redis.ts
3318
3560
  var Redis = class {
3319
3561
  client;
@@ -3388,6 +3630,10 @@ var Redis = class {
3388
3630
  * @see https://redis.io/commands/json.get
3389
3631
  */
3390
3632
  get: (...args) => new JsonGetCommand(args, this.opts).exec(this.client),
3633
+ /**
3634
+ * @see https://redis.io/commands/json.merge
3635
+ */
3636
+ merge: (...args) => new JsonMergeCommand(args, this.opts).exec(this.client),
3391
3637
  /**
3392
3638
  * @see https://redis.io/commands/json.mget
3393
3639
  */
@@ -3457,8 +3703,36 @@ var Redis = class {
3457
3703
  } catch {
3458
3704
  }
3459
3705
  };
3460
- createScript(script) {
3461
- return new Script(this, script);
3706
+ /**
3707
+ * Creates a new script.
3708
+ *
3709
+ * Scripts offer the ability to optimistically try to execute a script without having to send the
3710
+ * entire script to the server. If the script is loaded on the server, it tries again by sending
3711
+ * the entire script. Afterwards, the script is cached on the server.
3712
+ *
3713
+ * @param script - The script to create
3714
+ * @param opts - Optional options to pass to the script `{ readonly?: boolean }`
3715
+ * @returns A new script
3716
+ *
3717
+ * @example
3718
+ * ```ts
3719
+ * const redis = new Redis({...})
3720
+ *
3721
+ * const script = redis.createScript<string>("return ARGV[1];")
3722
+ * const arg1 = await script.eval([], ["Hello World"])
3723
+ * expect(arg1, "Hello World")
3724
+ * ```
3725
+ * @example
3726
+ * ```ts
3727
+ * const redis = new Redis({...})
3728
+ *
3729
+ * const script = redis.createScript<string>("return ARGV[1];", { readonly: true })
3730
+ * const arg1 = await script.evalRo([], ["Hello World"])
3731
+ * expect(arg1, "Hello World")
3732
+ * ```
3733
+ */
3734
+ createScript(script, opts) {
3735
+ return opts?.readonly ? new ScriptRO(this, script) : new Script(this, script);
3462
3736
  }
3463
3737
  /**
3464
3738
  * Create a new pipeline that allows you to send requests in bulk.
@@ -3545,10 +3819,18 @@ var Redis = class {
3545
3819
  * @see https://redis.io/commands/echo
3546
3820
  */
3547
3821
  echo = (...args) => new EchoCommand(args, this.opts).exec(this.client);
3822
+ /**
3823
+ * @see https://redis.io/commands/eval_ro
3824
+ */
3825
+ evalRo = (...args) => new EvalROCommand(args, this.opts).exec(this.client);
3548
3826
  /**
3549
3827
  * @see https://redis.io/commands/eval
3550
3828
  */
3551
3829
  eval = (...args) => new EvalCommand(args, this.opts).exec(this.client);
3830
+ /**
3831
+ * @see https://redis.io/commands/evalsha_ro
3832
+ */
3833
+ evalshaRo = (...args) => new EvalshaROCommand(args, this.opts).exec(this.client);
3552
3834
  /**
3553
3835
  * @see https://redis.io/commands/evalsha
3554
3836
  */
@@ -3633,6 +3915,42 @@ var Redis = class {
3633
3915
  * @see https://redis.io/commands/hexists
3634
3916
  */
3635
3917
  hexists = (...args) => new HExistsCommand(args, this.opts).exec(this.client);
3918
+ /**
3919
+ * @see https://redis.io/commands/hexpire
3920
+ */
3921
+ hexpire = (...args) => new HExpireCommand(args, this.opts).exec(this.client);
3922
+ /**
3923
+ * @see https://redis.io/commands/hexpireat
3924
+ */
3925
+ hexpireat = (...args) => new HExpireAtCommand(args, this.opts).exec(this.client);
3926
+ /**
3927
+ * @see https://redis.io/commands/hexpiretime
3928
+ */
3929
+ hexpiretime = (...args) => new HExpireTimeCommand(args, this.opts).exec(this.client);
3930
+ /**
3931
+ * @see https://redis.io/commands/httl
3932
+ */
3933
+ httl = (...args) => new HTtlCommand(args, this.opts).exec(this.client);
3934
+ /**
3935
+ * @see https://redis.io/commands/hpexpire
3936
+ */
3937
+ hpexpire = (...args) => new HPExpireCommand(args, this.opts).exec(this.client);
3938
+ /**
3939
+ * @see https://redis.io/commands/hpexpireat
3940
+ */
3941
+ hpexpireat = (...args) => new HPExpireAtCommand(args, this.opts).exec(this.client);
3942
+ /**
3943
+ * @see https://redis.io/commands/hpexpiretime
3944
+ */
3945
+ hpexpiretime = (...args) => new HPExpireTimeCommand(args, this.opts).exec(this.client);
3946
+ /**
3947
+ * @see https://redis.io/commands/hpttl
3948
+ */
3949
+ hpttl = (...args) => new HPTtlCommand(args, this.opts).exec(this.client);
3950
+ /**
3951
+ * @see https://redis.io/commands/hpersist
3952
+ */
3953
+ hpersist = (...args) => new HPersistCommand(args, this.opts).exec(this.client);
3636
3954
  /**
3637
3955
  * @see https://redis.io/commands/hget
3638
3956
  */
@@ -4124,7 +4442,7 @@ var Redis = class {
4124
4442
  };
4125
4443
 
4126
4444
  // version.ts
4127
- var VERSION = "v1.34.6";
4445
+ var VERSION = "v1.34.8";
4128
4446
 
4129
4447
  // platforms/cloudflare.ts
4130
4448
  var Redis2 = class _Redis extends Redis {
package/cloudflare.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  Redis,
4
4
  VERSION,
5
5
  error_exports
6
- } from "./chunk-56TVFNIH.mjs";
6
+ } from "./chunk-5XANP4AV.mjs";
7
7
 
8
8
  // platforms/cloudflare.ts
9
9
  var Redis2 = class _Redis extends Redis {
package/fastly.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as RedisOptions, a as RequesterConfig, b as Redis$1 } from './zmscore-BdNsMd17.mjs';
2
- export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, C as CopyCommand, D as DBSizeCommand, i as DecrByCommand, h as DecrCommand, j as DelCommand, E as EchoCommand, k as EvalCommand, l as EvalshaCommand, m as ExistsCommand, o as ExpireAtCommand, n as ExpireCommand, F as FlushAllCommand, p as FlushDBCommand, G as GeoAddCommand, q as GeoAddCommandOptions, s as GeoDistCommand, t as GeoHashCommand, r as GeoMember, u as GeoPosCommand, v as GeoSearchCommand, w as GeoSearchStoreCommand, y as GetBitCommand, x as GetCommand, z as GetDelCommand, H as GetExCommand, I as GetRangeCommand, J as GetSetCommand, K as HDelCommand, L as HExistsCommand, N as HGetAllCommand, M as HGetCommand, O as HIncrByCommand, Q as HIncrByFloatCommand, S as HKeysCommand, T as HLenCommand, V as HMGetCommand, W as HMSetCommand, X as HRandFieldCommand, Y as HScanCommand, Z as HSetCommand, _ as HSetNXCommand, $ as HStrLenCommand, a0 as HValsCommand, a2 as IncrByCommand, a3 as IncrByFloatCommand, a1 as IncrCommand, a4 as JsonArrAppendCommand, a5 as JsonArrIndexCommand, a6 as JsonArrInsertCommand, a7 as JsonArrLenCommand, a8 as JsonArrPopCommand, a9 as JsonArrTrimCommand, aa as JsonClearCommand, ab as JsonDelCommand, ac as JsonForgetCommand, ad as JsonGetCommand, ae as JsonMGetCommand, af as JsonNumIncrByCommand, ag as JsonNumMultByCommand, ah as JsonObjKeysCommand, ai as JsonObjLenCommand, aj as JsonRespCommand, ak as JsonSetCommand, al as JsonStrAppendCommand, am as JsonStrLenCommand, an as JsonToggleCommand, ao as JsonTypeCommand, ap as KeysCommand, aq as LIndexCommand, ar as LInsertCommand, as as LLenCommand, at as LMoveCommand, au as LPopCommand, av as LPushCommand, aw as LPushXCommand, ax as LRangeCommand, ay as LRemCommand, az as LSetCommand, aA as LTrimCommand, aB as MGetCommand, aC as MSetCommand, aD as MSetNXCommand, aG as PExpireAtCommand, aF as PExpireCommand, aI as PSetEXCommand, aJ as PTtlCommand, aE as PersistCommand, aH as PingCommand, P as Pipeline, aK as PublishCommand, aO as RPopCommand, aP as RPushCommand, aQ as RPushXCommand, aL as RandomKeyCommand, aM as RenameCommand, aN as RenameNXCommand, d as Requester, aR as SAddCommand, aU as SCardCommand, aY as SDiffCommand, aZ as SDiffStoreCommand, b4 as SInterCommand, b5 as SInterStoreCommand, b6 as SIsMemberCommand, b8 as SMIsMemberCommand, b7 as SMembersCommand, b9 as SMoveCommand, ba as SPopCommand, bb as SRandMemberCommand, bc as SRemCommand, bd as SScanCommand, bf as SUnionCommand, bg as SUnionStoreCommand, aS as ScanCommand, aT as ScanCommandOptions, bp as ScoreMember, aV as ScriptExistsCommand, aW as ScriptFlushCommand, aX as ScriptLoadCommand, b0 as SetBitCommand, a_ as SetCommand, a$ as SetCommandOptions, b1 as SetExCommand, b2 as SetNxCommand, b3 as SetRangeCommand, be as StrLenCommand, bh as TimeCommand, bi as TouchCommand, bj as TtlCommand, bk as Type, bl as TypeCommand, bm as UnlinkCommand, U as UpstashRequest, c as UpstashResponse, bn as XAddCommand, bo as XRangeCommand, br as ZAddCommand, bq as ZAddCommandOptions, bs as ZCardCommand, bt as ZCountCommand, bu as ZDiffStoreCommand, bv as ZIncrByCommand, bw as ZInterStoreCommand, bx as ZInterStoreCommandOptions, by as ZLexCountCommand, bz as ZMScoreCommand, bA as ZPopMaxCommand, bB as ZPopMinCommand, bC as ZRangeCommand, bD as ZRangeCommandOptions, bE as ZRankCommand, bF as ZRemCommand, bG as ZRemRangeByLexCommand, bH as ZRemRangeByRankCommand, bI as ZRemRangeByScoreCommand, bJ as ZRevRankCommand, bK as ZScanCommand, bL as ZScoreCommand, bM as ZUnionCommand, bN as ZUnionCommandOptions, bO as ZUnionStoreCommand, bP as ZUnionStoreCommandOptions, e as errors } from './zmscore-BdNsMd17.mjs';
1
+ import { R as RedisOptions, a as RequesterConfig, b as Redis$1 } from './zmscore-CjoCv9kz.mjs';
2
+ export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, C as CopyCommand, D as DBSizeCommand, i as DecrByCommand, h as DecrCommand, j as DelCommand, E as EchoCommand, l as EvalCommand, k as EvalROCommand, n as EvalshaCommand, m as EvalshaROCommand, o as ExistsCommand, r as ExpireAtCommand, p as ExpireCommand, q as ExpireOption, F as FlushAllCommand, s as FlushDBCommand, G as GeoAddCommand, t as GeoAddCommandOptions, v as GeoDistCommand, w as GeoHashCommand, u as GeoMember, x as GeoPosCommand, y as GeoSearchCommand, z as GeoSearchStoreCommand, I as GetBitCommand, H as GetCommand, J as GetDelCommand, K as GetExCommand, L as GetRangeCommand, M as GetSetCommand, N as HDelCommand, O as HExistsCommand, S as HExpireAtCommand, Q as HExpireCommand, T as HExpireTimeCommand, a0 as HGetAllCommand, $ as HGetCommand, a1 as HIncrByCommand, a2 as HIncrByFloatCommand, a3 as HKeysCommand, a4 as HLenCommand, a5 as HMGetCommand, a6 as HMSetCommand, X as HPExpireAtCommand, W as HPExpireCommand, Y as HPExpireTimeCommand, Z as HPTtlCommand, _ as HPersistCommand, a7 as HRandFieldCommand, a8 as HScanCommand, a9 as HSetCommand, aa as HSetNXCommand, ab as HStrLenCommand, V as HTtlCommand, ac as HValsCommand, ae as IncrByCommand, af as IncrByFloatCommand, ad as IncrCommand, ag as JsonArrAppendCommand, ah as JsonArrIndexCommand, ai as JsonArrInsertCommand, aj as JsonArrLenCommand, ak as JsonArrPopCommand, al as JsonArrTrimCommand, am as JsonClearCommand, an as JsonDelCommand, ao as JsonForgetCommand, ap as JsonGetCommand, ar as JsonMGetCommand, aq as JsonMergeCommand, as as JsonNumIncrByCommand, at as JsonNumMultByCommand, au as JsonObjKeysCommand, av as JsonObjLenCommand, aw as JsonRespCommand, ax as JsonSetCommand, ay as JsonStrAppendCommand, az as JsonStrLenCommand, aA as JsonToggleCommand, aB as JsonTypeCommand, aC as KeysCommand, aD as LIndexCommand, aE as LInsertCommand, aF as LLenCommand, aG as LMoveCommand, aH as LPopCommand, aI as LPushCommand, aJ as LPushXCommand, aK as LRangeCommand, aL as LRemCommand, aM as LSetCommand, aN as LTrimCommand, aO as MGetCommand, aP as MSetCommand, aQ as MSetNXCommand, aT as PExpireAtCommand, aS as PExpireCommand, aV as PSetEXCommand, aW as PTtlCommand, aR as PersistCommand, aU as PingCommand, P as Pipeline, aX as PublishCommand, a$ as RPopCommand, b0 as RPushCommand, b1 as RPushXCommand, aY as RandomKeyCommand, aZ as RenameCommand, a_ as RenameNXCommand, d as Requester, b2 as SAddCommand, b5 as SCardCommand, b9 as SDiffCommand, ba as SDiffStoreCommand, bh as SInterCommand, bi as SInterStoreCommand, bj as SIsMemberCommand, bl as SMIsMemberCommand, bk as SMembersCommand, bm as SMoveCommand, bn as SPopCommand, bo as SRandMemberCommand, bp as SRemCommand, bq as SScanCommand, bs as SUnionCommand, bt as SUnionStoreCommand, b3 as ScanCommand, b4 as ScanCommandOptions, bC as ScoreMember, b6 as ScriptExistsCommand, b7 as ScriptFlushCommand, b8 as ScriptLoadCommand, bd as SetBitCommand, bb as SetCommand, bc as SetCommandOptions, be as SetExCommand, bf as SetNxCommand, bg as SetRangeCommand, br as StrLenCommand, bu as TimeCommand, bv as TouchCommand, bw as TtlCommand, bx as Type, by as TypeCommand, bz as UnlinkCommand, U as UpstashRequest, c as UpstashResponse, bA as XAddCommand, bB as XRangeCommand, bE as ZAddCommand, bD as ZAddCommandOptions, bF as ZCardCommand, bG as ZCountCommand, bH as ZDiffStoreCommand, bI as ZIncrByCommand, bJ as ZInterStoreCommand, bK as ZInterStoreCommandOptions, bL as ZLexCountCommand, bM as ZMScoreCommand, bN as ZPopMaxCommand, bO as ZPopMinCommand, bP as ZRangeCommand, bQ as ZRangeCommandOptions, bR as ZRankCommand, bS as ZRemCommand, bT as ZRemRangeByLexCommand, bU as ZRemRangeByRankCommand, bV as ZRemRangeByScoreCommand, bW as ZRevRankCommand, bX as ZScanCommand, bY as ZScoreCommand, bZ as ZUnionCommand, b_ as ZUnionCommandOptions, b$ as ZUnionStoreCommand, c0 as ZUnionStoreCommandOptions, e as errors } from './zmscore-CjoCv9kz.mjs';
3
3
 
4
4
  /**
5
5
  * Connection credentials for upstash redis.
package/fastly.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as RedisOptions, a as RequesterConfig, b as Redis$1 } from './zmscore-BdNsMd17.js';
2
- export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, C as CopyCommand, D as DBSizeCommand, i as DecrByCommand, h as DecrCommand, j as DelCommand, E as EchoCommand, k as EvalCommand, l as EvalshaCommand, m as ExistsCommand, o as ExpireAtCommand, n as ExpireCommand, F as FlushAllCommand, p as FlushDBCommand, G as GeoAddCommand, q as GeoAddCommandOptions, s as GeoDistCommand, t as GeoHashCommand, r as GeoMember, u as GeoPosCommand, v as GeoSearchCommand, w as GeoSearchStoreCommand, y as GetBitCommand, x as GetCommand, z as GetDelCommand, H as GetExCommand, I as GetRangeCommand, J as GetSetCommand, K as HDelCommand, L as HExistsCommand, N as HGetAllCommand, M as HGetCommand, O as HIncrByCommand, Q as HIncrByFloatCommand, S as HKeysCommand, T as HLenCommand, V as HMGetCommand, W as HMSetCommand, X as HRandFieldCommand, Y as HScanCommand, Z as HSetCommand, _ as HSetNXCommand, $ as HStrLenCommand, a0 as HValsCommand, a2 as IncrByCommand, a3 as IncrByFloatCommand, a1 as IncrCommand, a4 as JsonArrAppendCommand, a5 as JsonArrIndexCommand, a6 as JsonArrInsertCommand, a7 as JsonArrLenCommand, a8 as JsonArrPopCommand, a9 as JsonArrTrimCommand, aa as JsonClearCommand, ab as JsonDelCommand, ac as JsonForgetCommand, ad as JsonGetCommand, ae as JsonMGetCommand, af as JsonNumIncrByCommand, ag as JsonNumMultByCommand, ah as JsonObjKeysCommand, ai as JsonObjLenCommand, aj as JsonRespCommand, ak as JsonSetCommand, al as JsonStrAppendCommand, am as JsonStrLenCommand, an as JsonToggleCommand, ao as JsonTypeCommand, ap as KeysCommand, aq as LIndexCommand, ar as LInsertCommand, as as LLenCommand, at as LMoveCommand, au as LPopCommand, av as LPushCommand, aw as LPushXCommand, ax as LRangeCommand, ay as LRemCommand, az as LSetCommand, aA as LTrimCommand, aB as MGetCommand, aC as MSetCommand, aD as MSetNXCommand, aG as PExpireAtCommand, aF as PExpireCommand, aI as PSetEXCommand, aJ as PTtlCommand, aE as PersistCommand, aH as PingCommand, P as Pipeline, aK as PublishCommand, aO as RPopCommand, aP as RPushCommand, aQ as RPushXCommand, aL as RandomKeyCommand, aM as RenameCommand, aN as RenameNXCommand, d as Requester, aR as SAddCommand, aU as SCardCommand, aY as SDiffCommand, aZ as SDiffStoreCommand, b4 as SInterCommand, b5 as SInterStoreCommand, b6 as SIsMemberCommand, b8 as SMIsMemberCommand, b7 as SMembersCommand, b9 as SMoveCommand, ba as SPopCommand, bb as SRandMemberCommand, bc as SRemCommand, bd as SScanCommand, bf as SUnionCommand, bg as SUnionStoreCommand, aS as ScanCommand, aT as ScanCommandOptions, bp as ScoreMember, aV as ScriptExistsCommand, aW as ScriptFlushCommand, aX as ScriptLoadCommand, b0 as SetBitCommand, a_ as SetCommand, a$ as SetCommandOptions, b1 as SetExCommand, b2 as SetNxCommand, b3 as SetRangeCommand, be as StrLenCommand, bh as TimeCommand, bi as TouchCommand, bj as TtlCommand, bk as Type, bl as TypeCommand, bm as UnlinkCommand, U as UpstashRequest, c as UpstashResponse, bn as XAddCommand, bo as XRangeCommand, br as ZAddCommand, bq as ZAddCommandOptions, bs as ZCardCommand, bt as ZCountCommand, bu as ZDiffStoreCommand, bv as ZIncrByCommand, bw as ZInterStoreCommand, bx as ZInterStoreCommandOptions, by as ZLexCountCommand, bz as ZMScoreCommand, bA as ZPopMaxCommand, bB as ZPopMinCommand, bC as ZRangeCommand, bD as ZRangeCommandOptions, bE as ZRankCommand, bF as ZRemCommand, bG as ZRemRangeByLexCommand, bH as ZRemRangeByRankCommand, bI as ZRemRangeByScoreCommand, bJ as ZRevRankCommand, bK as ZScanCommand, bL as ZScoreCommand, bM as ZUnionCommand, bN as ZUnionCommandOptions, bO as ZUnionStoreCommand, bP as ZUnionStoreCommandOptions, e as errors } from './zmscore-BdNsMd17.js';
1
+ import { R as RedisOptions, a as RequesterConfig, b as Redis$1 } from './zmscore-CjoCv9kz.js';
2
+ export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, C as CopyCommand, D as DBSizeCommand, i as DecrByCommand, h as DecrCommand, j as DelCommand, E as EchoCommand, l as EvalCommand, k as EvalROCommand, n as EvalshaCommand, m as EvalshaROCommand, o as ExistsCommand, r as ExpireAtCommand, p as ExpireCommand, q as ExpireOption, F as FlushAllCommand, s as FlushDBCommand, G as GeoAddCommand, t as GeoAddCommandOptions, v as GeoDistCommand, w as GeoHashCommand, u as GeoMember, x as GeoPosCommand, y as GeoSearchCommand, z as GeoSearchStoreCommand, I as GetBitCommand, H as GetCommand, J as GetDelCommand, K as GetExCommand, L as GetRangeCommand, M as GetSetCommand, N as HDelCommand, O as HExistsCommand, S as HExpireAtCommand, Q as HExpireCommand, T as HExpireTimeCommand, a0 as HGetAllCommand, $ as HGetCommand, a1 as HIncrByCommand, a2 as HIncrByFloatCommand, a3 as HKeysCommand, a4 as HLenCommand, a5 as HMGetCommand, a6 as HMSetCommand, X as HPExpireAtCommand, W as HPExpireCommand, Y as HPExpireTimeCommand, Z as HPTtlCommand, _ as HPersistCommand, a7 as HRandFieldCommand, a8 as HScanCommand, a9 as HSetCommand, aa as HSetNXCommand, ab as HStrLenCommand, V as HTtlCommand, ac as HValsCommand, ae as IncrByCommand, af as IncrByFloatCommand, ad as IncrCommand, ag as JsonArrAppendCommand, ah as JsonArrIndexCommand, ai as JsonArrInsertCommand, aj as JsonArrLenCommand, ak as JsonArrPopCommand, al as JsonArrTrimCommand, am as JsonClearCommand, an as JsonDelCommand, ao as JsonForgetCommand, ap as JsonGetCommand, ar as JsonMGetCommand, aq as JsonMergeCommand, as as JsonNumIncrByCommand, at as JsonNumMultByCommand, au as JsonObjKeysCommand, av as JsonObjLenCommand, aw as JsonRespCommand, ax as JsonSetCommand, ay as JsonStrAppendCommand, az as JsonStrLenCommand, aA as JsonToggleCommand, aB as JsonTypeCommand, aC as KeysCommand, aD as LIndexCommand, aE as LInsertCommand, aF as LLenCommand, aG as LMoveCommand, aH as LPopCommand, aI as LPushCommand, aJ as LPushXCommand, aK as LRangeCommand, aL as LRemCommand, aM as LSetCommand, aN as LTrimCommand, aO as MGetCommand, aP as MSetCommand, aQ as MSetNXCommand, aT as PExpireAtCommand, aS as PExpireCommand, aV as PSetEXCommand, aW as PTtlCommand, aR as PersistCommand, aU as PingCommand, P as Pipeline, aX as PublishCommand, a$ as RPopCommand, b0 as RPushCommand, b1 as RPushXCommand, aY as RandomKeyCommand, aZ as RenameCommand, a_ as RenameNXCommand, d as Requester, b2 as SAddCommand, b5 as SCardCommand, b9 as SDiffCommand, ba as SDiffStoreCommand, bh as SInterCommand, bi as SInterStoreCommand, bj as SIsMemberCommand, bl as SMIsMemberCommand, bk as SMembersCommand, bm as SMoveCommand, bn as SPopCommand, bo as SRandMemberCommand, bp as SRemCommand, bq as SScanCommand, bs as SUnionCommand, bt as SUnionStoreCommand, b3 as ScanCommand, b4 as ScanCommandOptions, bC as ScoreMember, b6 as ScriptExistsCommand, b7 as ScriptFlushCommand, b8 as ScriptLoadCommand, bd as SetBitCommand, bb as SetCommand, bc as SetCommandOptions, be as SetExCommand, bf as SetNxCommand, bg as SetRangeCommand, br as StrLenCommand, bu as TimeCommand, bv as TouchCommand, bw as TtlCommand, bx as Type, by as TypeCommand, bz as UnlinkCommand, U as UpstashRequest, c as UpstashResponse, bA as XAddCommand, bB as XRangeCommand, bE as ZAddCommand, bD as ZAddCommandOptions, bF as ZCardCommand, bG as ZCountCommand, bH as ZDiffStoreCommand, bI as ZIncrByCommand, bJ as ZInterStoreCommand, bK as ZInterStoreCommandOptions, bL as ZLexCountCommand, bM as ZMScoreCommand, bN as ZPopMaxCommand, bO as ZPopMinCommand, bP as ZRangeCommand, bQ as ZRangeCommandOptions, bR as ZRankCommand, bS as ZRemCommand, bT as ZRemRangeByLexCommand, bU as ZRemRangeByRankCommand, bV as ZRemRangeByScoreCommand, bW as ZRevRankCommand, bX as ZScanCommand, bY as ZScoreCommand, bZ as ZUnionCommand, b_ as ZUnionCommandOptions, b$ as ZUnionStoreCommand, c0 as ZUnionStoreCommandOptions, e as errors } from './zmscore-CjoCv9kz.js';
3
3
 
4
4
  /**
5
5
  * Connection credentials for upstash redis.