@upstash/redis 1.34.7 → 1.34.9

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/fastly.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as RedisOptions, a as RequesterConfig, b as Redis$1 } from './zmscore-hRk-rDLY.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, q as ExpireAtCommand, p as ExpireCommand, F as FlushAllCommand, r as FlushDBCommand, G as GeoAddCommand, s as GeoAddCommandOptions, u as GeoDistCommand, v as GeoHashCommand, t as GeoMember, w as GeoPosCommand, x as GeoSearchCommand, y as GeoSearchStoreCommand, H as GetBitCommand, z as GetCommand, I as GetDelCommand, J as GetExCommand, K as GetRangeCommand, L as GetSetCommand, M as HDelCommand, N as HExistsCommand, O as HExpireCommand, S as HGetAllCommand, Q as HGetCommand, T as HIncrByCommand, V as HIncrByFloatCommand, W as HKeysCommand, X as HLenCommand, Y as HMGetCommand, Z as HMSetCommand, _ as HRandFieldCommand, $ as HScanCommand, a0 as HSetCommand, a1 as HSetNXCommand, a2 as HStrLenCommand, a3 as HValsCommand, a5 as IncrByCommand, a6 as IncrByFloatCommand, a4 as IncrCommand, a7 as JsonArrAppendCommand, a8 as JsonArrIndexCommand, a9 as JsonArrInsertCommand, aa as JsonArrLenCommand, ab as JsonArrPopCommand, ac as JsonArrTrimCommand, ad as JsonClearCommand, ae as JsonDelCommand, af as JsonForgetCommand, ag as JsonGetCommand, ai as JsonMGetCommand, ah as JsonMergeCommand, aj as JsonNumIncrByCommand, ak as JsonNumMultByCommand, al as JsonObjKeysCommand, am as JsonObjLenCommand, an as JsonRespCommand, ao as JsonSetCommand, ap as JsonStrAppendCommand, aq as JsonStrLenCommand, ar as JsonToggleCommand, as as JsonTypeCommand, at as KeysCommand, au as LIndexCommand, av as LInsertCommand, aw as LLenCommand, ax as LMoveCommand, ay as LPopCommand, az as LPushCommand, aA as LPushXCommand, aB as LRangeCommand, aC as LRemCommand, aD as LSetCommand, aE as LTrimCommand, aF as MGetCommand, aG as MSetCommand, aH as MSetNXCommand, aK as PExpireAtCommand, aJ as PExpireCommand, aM as PSetEXCommand, aN as PTtlCommand, aI as PersistCommand, aL as PingCommand, P as Pipeline, aO as PublishCommand, aS as RPopCommand, aT as RPushCommand, aU as RPushXCommand, aP as RandomKeyCommand, aQ as RenameCommand, aR as RenameNXCommand, d as Requester, aV as SAddCommand, aY as SCardCommand, b0 as SDiffCommand, b1 as SDiffStoreCommand, b8 as SInterCommand, b9 as SInterStoreCommand, ba as SIsMemberCommand, bc as SMIsMemberCommand, bb as SMembersCommand, bd as SMoveCommand, be as SPopCommand, bf as SRandMemberCommand, bg as SRemCommand, bh as SScanCommand, bj as SUnionCommand, bk as SUnionStoreCommand, aW as ScanCommand, aX as ScanCommandOptions, bt as ScoreMember, aZ as ScriptExistsCommand, a_ as ScriptFlushCommand, a$ as ScriptLoadCommand, b4 as SetBitCommand, b2 as SetCommand, b3 as SetCommandOptions, b5 as SetExCommand, b6 as SetNxCommand, b7 as SetRangeCommand, bi as StrLenCommand, bl as TimeCommand, bm as TouchCommand, bn as TtlCommand, bo as Type, bp as TypeCommand, bq as UnlinkCommand, U as UpstashRequest, c as UpstashResponse, br as XAddCommand, bs as XRangeCommand, bv as ZAddCommand, bu as ZAddCommandOptions, bw as ZCardCommand, bx as ZCountCommand, by as ZDiffStoreCommand, bz as ZIncrByCommand, bA as ZInterStoreCommand, bB as ZInterStoreCommandOptions, bC as ZLexCountCommand, bD as ZMScoreCommand, bE as ZPopMaxCommand, bF as ZPopMinCommand, bG as ZRangeCommand, bH as ZRangeCommandOptions, bI as ZRankCommand, bJ as ZRemCommand, bK as ZRemRangeByLexCommand, bL as ZRemRangeByRankCommand, bM as ZRemRangeByScoreCommand, bN as ZRevRankCommand, bO as ZScanCommand, bP as ZScoreCommand, bQ as ZUnionCommand, bR as ZUnionCommandOptions, bS as ZUnionStoreCommand, bT as ZUnionStoreCommandOptions, e as errors } from './zmscore-hRk-rDLY.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.
package/fastly.js CHANGED
@@ -305,6 +305,23 @@ function merge(obj, key, value) {
305
305
  }
306
306
 
307
307
  // pkg/auto-pipeline.ts
308
+ var EXCLUDE_COMMANDS = /* @__PURE__ */ new Set([
309
+ "scan",
310
+ "keys",
311
+ "flushdb",
312
+ "flushall",
313
+ "dbsize",
314
+ "hscan",
315
+ "hgetall",
316
+ "hkeys",
317
+ "lrange",
318
+ "sscan",
319
+ "smembers",
320
+ "xrange",
321
+ "xrevrange",
322
+ "zscan",
323
+ "zrange"
324
+ ]);
308
325
  function createAutoPipelineProxy(_redis, json) {
309
326
  const redis = _redis;
310
327
  if (!redis.autoPipelineExecutor) {
@@ -319,7 +336,8 @@ function createAutoPipelineProxy(_redis, json) {
319
336
  return createAutoPipelineProxy(redis2, true);
320
337
  }
321
338
  const commandInRedisButNotPipeline = command in redis2 && !(command in redis2.autoPipelineExecutor.pipeline);
322
- if (commandInRedisButNotPipeline) {
339
+ const isCommandExcluded = EXCLUDE_COMMANDS.has(command);
340
+ if (commandInRedisButNotPipeline || isCommandExcluded) {
323
341
  return redis2[command];
324
342
  }
325
343
  const isFunction = json ? typeof redis2.autoPipelineExecutor.pipeline.json[command] === "function" : typeof redis2.autoPipelineExecutor.pipeline[command] === "function";
@@ -456,26 +474,6 @@ var Command = class {
456
474
  }
457
475
  };
458
476
 
459
- // pkg/commands/hexpire.ts
460
- var HExpireCommand = class extends Command {
461
- constructor(cmd, opts) {
462
- const [key, fields, seconds, option] = cmd;
463
- const fieldArray = Array.isArray(fields) ? fields : [fields];
464
- super(
465
- [
466
- "hexpire",
467
- key,
468
- seconds,
469
- ...option ? [option] : [],
470
- "FIELDS",
471
- fieldArray.length,
472
- ...fieldArray
473
- ],
474
- opts
475
- );
476
- }
477
- };
478
-
479
477
  // pkg/commands/append.ts
480
478
  var AppendCommand = class extends Command {
481
479
  constructor(cmd, opts) {
@@ -893,6 +891,122 @@ var HExistsCommand = class extends Command {
893
891
  }
894
892
  };
895
893
 
894
+ // pkg/commands/hexpire.ts
895
+ var HExpireCommand = class extends Command {
896
+ constructor(cmd, opts) {
897
+ const [key, fields, seconds, option] = cmd;
898
+ const fieldArray = Array.isArray(fields) ? fields : [fields];
899
+ super(
900
+ [
901
+ "hexpire",
902
+ key,
903
+ seconds,
904
+ ...option ? [option] : [],
905
+ "FIELDS",
906
+ fieldArray.length,
907
+ ...fieldArray
908
+ ],
909
+ opts
910
+ );
911
+ }
912
+ };
913
+
914
+ // pkg/commands/hexpireat.ts
915
+ var HExpireAtCommand = class extends Command {
916
+ constructor(cmd, opts) {
917
+ const [key, fields, timestamp, option] = cmd;
918
+ const fieldArray = Array.isArray(fields) ? fields : [fields];
919
+ super(
920
+ [
921
+ "hexpireat",
922
+ key,
923
+ timestamp,
924
+ ...option ? [option] : [],
925
+ "FIELDS",
926
+ fieldArray.length,
927
+ ...fieldArray
928
+ ],
929
+ opts
930
+ );
931
+ }
932
+ };
933
+
934
+ // pkg/commands/hexpiretime.ts
935
+ var HExpireTimeCommand = class extends Command {
936
+ constructor(cmd, opts) {
937
+ const [key, fields] = cmd;
938
+ const fieldArray = Array.isArray(fields) ? fields : [fields];
939
+ super(["hexpiretime", key, "FIELDS", fieldArray.length, ...fieldArray], opts);
940
+ }
941
+ };
942
+
943
+ // pkg/commands/hpersist.ts
944
+ var HPersistCommand = class extends Command {
945
+ constructor(cmd, opts) {
946
+ const [key, fields] = cmd;
947
+ const fieldArray = Array.isArray(fields) ? fields : [fields];
948
+ super(["hpersist", key, "FIELDS", fieldArray.length, ...fieldArray], opts);
949
+ }
950
+ };
951
+
952
+ // pkg/commands/hpexpire.ts
953
+ var HPExpireCommand = class extends Command {
954
+ constructor(cmd, opts) {
955
+ const [key, fields, milliseconds, option] = cmd;
956
+ const fieldArray = Array.isArray(fields) ? fields : [fields];
957
+ super(
958
+ [
959
+ "hpexpire",
960
+ key,
961
+ milliseconds,
962
+ ...option ? [option] : [],
963
+ "FIELDS",
964
+ fieldArray.length,
965
+ ...fieldArray
966
+ ],
967
+ opts
968
+ );
969
+ }
970
+ };
971
+
972
+ // pkg/commands/hpexpireat.ts
973
+ var HPExpireAtCommand = class extends Command {
974
+ constructor(cmd, opts) {
975
+ const [key, fields, timestamp, option] = cmd;
976
+ const fieldArray = Array.isArray(fields) ? fields : [fields];
977
+ super(
978
+ [
979
+ "hpexpireat",
980
+ key,
981
+ timestamp,
982
+ ...option ? [option] : [],
983
+ "FIELDS",
984
+ fieldArray.length,
985
+ ...fieldArray
986
+ ],
987
+ opts
988
+ );
989
+ }
990
+ };
991
+
992
+ // pkg/commands/hpexpiretime.ts
993
+ var HPExpireTimeCommand = class extends Command {
994
+ constructor(cmd, opts) {
995
+ const [key, fields] = cmd;
996
+ const fieldArray = Array.isArray(fields) ? fields : [fields];
997
+ super(["hpexpiretime", key, "FIELDS", fieldArray.length, ...fieldArray], opts);
998
+ }
999
+ };
1000
+
1001
+ // pkg/commands/hpttl.ts
1002
+ var HPTtlCommand = class extends Command {
1003
+ constructor(cmd, opts) {
1004
+ const [key, fields] = cmd;
1005
+ const fieldArray = Array.isArray(fields) ? fields : [fields];
1006
+ super(["hpttl", key, "FIELDS", fieldArray.length, ...fieldArray], opts);
1007
+ }
1008
+ };
1009
+
896
1010
  // pkg/commands/hget.ts
897
1011
  var HGetCommand = class extends Command {
898
1012
  constructor(cmd, opts) {
@@ -1058,6 +1172,15 @@ var HStrLenCommand = class extends Command {
1058
1172
  }
1059
1173
  };
1060
1174
 
1175
+ // pkg/commands/httl.ts
1176
+ var HTtlCommand = class extends Command {
1177
+ constructor(cmd, opts) {
1178
+ const [key, fields] = cmd;
1179
+ const fieldArray = Array.isArray(fields) ? fields : [fields];
1180
+ super(["httl", key, "FIELDS", fieldArray.length, ...fieldArray], opts);
1181
+ }
1182
+ };
1183
+
1061
1184
  // pkg/commands/hvals.ts
1062
1185
  var HValsCommand = class extends Command {
1063
1186
  constructor(cmd, opts) {
@@ -2752,6 +2875,38 @@ var Pipeline = class {
2752
2875
  * @see https://redis.io/commands/hexpire
2753
2876
  */
2754
2877
  hexpire = (...args) => this.chain(new HExpireCommand(args, this.commandOptions));
2878
+ /**
2879
+ * @see https://redis.io/commands/hexpireat
2880
+ */
2881
+ hexpireat = (...args) => this.chain(new HExpireAtCommand(args, this.commandOptions));
2882
+ /**
2883
+ * @see https://redis.io/commands/hexpiretime
2884
+ */
2885
+ hexpiretime = (...args) => this.chain(new HExpireTimeCommand(args, this.commandOptions));
2886
+ /**
2887
+ * @see https://redis.io/commands/httl
2888
+ */
2889
+ httl = (...args) => this.chain(new HTtlCommand(args, this.commandOptions));
2890
+ /**
2891
+ * @see https://redis.io/commands/hpexpire
2892
+ */
2893
+ hpexpire = (...args) => this.chain(new HPExpireCommand(args, this.commandOptions));
2894
+ /**
2895
+ * @see https://redis.io/commands/hpexpireat
2896
+ */
2897
+ hpexpireat = (...args) => this.chain(new HPExpireAtCommand(args, this.commandOptions));
2898
+ /**
2899
+ * @see https://redis.io/commands/hpexpiretime
2900
+ */
2901
+ hpexpiretime = (...args) => this.chain(new HPExpireTimeCommand(args, this.commandOptions));
2902
+ /**
2903
+ * @see https://redis.io/commands/hpttl
2904
+ */
2905
+ hpttl = (...args) => this.chain(new HPTtlCommand(args, this.commandOptions));
2906
+ /**
2907
+ * @see https://redis.io/commands/hpersist
2908
+ */
2909
+ hpersist = (...args) => this.chain(new HPersistCommand(args, this.commandOptions));
2755
2910
  /**
2756
2911
  * @see https://redis.io/commands/hget
2757
2912
  */
@@ -3782,6 +3937,38 @@ var Redis = class {
3782
3937
  * @see https://redis.io/commands/hexpire
3783
3938
  */
3784
3939
  hexpire = (...args) => new HExpireCommand(args, this.opts).exec(this.client);
3940
+ /**
3941
+ * @see https://redis.io/commands/hexpireat
3942
+ */
3943
+ hexpireat = (...args) => new HExpireAtCommand(args, this.opts).exec(this.client);
3944
+ /**
3945
+ * @see https://redis.io/commands/hexpiretime
3946
+ */
3947
+ hexpiretime = (...args) => new HExpireTimeCommand(args, this.opts).exec(this.client);
3948
+ /**
3949
+ * @see https://redis.io/commands/httl
3950
+ */
3951
+ httl = (...args) => new HTtlCommand(args, this.opts).exec(this.client);
3952
+ /**
3953
+ * @see https://redis.io/commands/hpexpire
3954
+ */
3955
+ hpexpire = (...args) => new HPExpireCommand(args, this.opts).exec(this.client);
3956
+ /**
3957
+ * @see https://redis.io/commands/hpexpireat
3958
+ */
3959
+ hpexpireat = (...args) => new HPExpireAtCommand(args, this.opts).exec(this.client);
3960
+ /**
3961
+ * @see https://redis.io/commands/hpexpiretime
3962
+ */
3963
+ hpexpiretime = (...args) => new HPExpireTimeCommand(args, this.opts).exec(this.client);
3964
+ /**
3965
+ * @see https://redis.io/commands/hpttl
3966
+ */
3967
+ hpttl = (...args) => new HPTtlCommand(args, this.opts).exec(this.client);
3968
+ /**
3969
+ * @see https://redis.io/commands/hpersist
3970
+ */
3971
+ hpersist = (...args) => new HPersistCommand(args, this.opts).exec(this.client);
3785
3972
  /**
3786
3973
  * @see https://redis.io/commands/hget
3787
3974
  */
@@ -4273,7 +4460,7 @@ var Redis = class {
4273
4460
  };
4274
4461
 
4275
4462
  // version.ts
4276
- var VERSION = "v1.34.7";
4463
+ var VERSION = "v1.34.9";
4277
4464
 
4278
4465
  // platforms/fastly.ts
4279
4466
  var Redis2 = class extends Redis {
package/fastly.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  Redis,
4
4
  VERSION,
5
5
  error_exports
6
- } from "./chunk-TA73MYTP.mjs";
6
+ } from "./chunk-TZPYH7UX.mjs";
7
7
 
8
8
  // platforms/fastly.ts
9
9
  var Redis2 = class extends Redis {
package/nodejs.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as RedisOptions, a as RequesterConfig, b as Redis$1 } from './zmscore-hRk-rDLY.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, q as ExpireAtCommand, p as ExpireCommand, F as FlushAllCommand, r as FlushDBCommand, G as GeoAddCommand, s as GeoAddCommandOptions, u as GeoDistCommand, v as GeoHashCommand, t as GeoMember, w as GeoPosCommand, x as GeoSearchCommand, y as GeoSearchStoreCommand, H as GetBitCommand, z as GetCommand, I as GetDelCommand, J as GetExCommand, K as GetRangeCommand, L as GetSetCommand, M as HDelCommand, N as HExistsCommand, O as HExpireCommand, S as HGetAllCommand, Q as HGetCommand, T as HIncrByCommand, V as HIncrByFloatCommand, W as HKeysCommand, X as HLenCommand, Y as HMGetCommand, Z as HMSetCommand, _ as HRandFieldCommand, $ as HScanCommand, a0 as HSetCommand, a1 as HSetNXCommand, a2 as HStrLenCommand, a3 as HValsCommand, a5 as IncrByCommand, a6 as IncrByFloatCommand, a4 as IncrCommand, a7 as JsonArrAppendCommand, a8 as JsonArrIndexCommand, a9 as JsonArrInsertCommand, aa as JsonArrLenCommand, ab as JsonArrPopCommand, ac as JsonArrTrimCommand, ad as JsonClearCommand, ae as JsonDelCommand, af as JsonForgetCommand, ag as JsonGetCommand, ai as JsonMGetCommand, ah as JsonMergeCommand, aj as JsonNumIncrByCommand, ak as JsonNumMultByCommand, al as JsonObjKeysCommand, am as JsonObjLenCommand, an as JsonRespCommand, ao as JsonSetCommand, ap as JsonStrAppendCommand, aq as JsonStrLenCommand, ar as JsonToggleCommand, as as JsonTypeCommand, at as KeysCommand, au as LIndexCommand, av as LInsertCommand, aw as LLenCommand, ax as LMoveCommand, ay as LPopCommand, az as LPushCommand, aA as LPushXCommand, aB as LRangeCommand, aC as LRemCommand, aD as LSetCommand, aE as LTrimCommand, aF as MGetCommand, aG as MSetCommand, aH as MSetNXCommand, aK as PExpireAtCommand, aJ as PExpireCommand, aM as PSetEXCommand, aN as PTtlCommand, aI as PersistCommand, aL as PingCommand, P as Pipeline, aO as PublishCommand, aS as RPopCommand, aT as RPushCommand, aU as RPushXCommand, aP as RandomKeyCommand, aQ as RenameCommand, aR as RenameNXCommand, d as Requester, aV as SAddCommand, aY as SCardCommand, b0 as SDiffCommand, b1 as SDiffStoreCommand, b8 as SInterCommand, b9 as SInterStoreCommand, ba as SIsMemberCommand, bc as SMIsMemberCommand, bb as SMembersCommand, bd as SMoveCommand, be as SPopCommand, bf as SRandMemberCommand, bg as SRemCommand, bh as SScanCommand, bj as SUnionCommand, bk as SUnionStoreCommand, aW as ScanCommand, aX as ScanCommandOptions, bt as ScoreMember, aZ as ScriptExistsCommand, a_ as ScriptFlushCommand, a$ as ScriptLoadCommand, b4 as SetBitCommand, b2 as SetCommand, b3 as SetCommandOptions, b5 as SetExCommand, b6 as SetNxCommand, b7 as SetRangeCommand, bi as StrLenCommand, bl as TimeCommand, bm as TouchCommand, bn as TtlCommand, bo as Type, bp as TypeCommand, bq as UnlinkCommand, U as UpstashRequest, c as UpstashResponse, br as XAddCommand, bs as XRangeCommand, bv as ZAddCommand, bu as ZAddCommandOptions, bw as ZCardCommand, bx as ZCountCommand, by as ZDiffStoreCommand, bz as ZIncrByCommand, bA as ZInterStoreCommand, bB as ZInterStoreCommandOptions, bC as ZLexCountCommand, bD as ZMScoreCommand, bE as ZPopMaxCommand, bF as ZPopMinCommand, bG as ZRangeCommand, bH as ZRangeCommandOptions, bI as ZRankCommand, bJ as ZRemCommand, bK as ZRemRangeByLexCommand, bL as ZRemRangeByRankCommand, bM as ZRemRangeByScoreCommand, bN as ZRevRankCommand, bO as ZScanCommand, bP as ZScoreCommand, bQ as ZUnionCommand, bR as ZUnionCommandOptions, bS as ZUnionStoreCommand, bT as ZUnionStoreCommandOptions, e as errors } from './zmscore-hRk-rDLY.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/nodejs.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as RedisOptions, a as RequesterConfig, b as Redis$1 } from './zmscore-hRk-rDLY.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, q as ExpireAtCommand, p as ExpireCommand, F as FlushAllCommand, r as FlushDBCommand, G as GeoAddCommand, s as GeoAddCommandOptions, u as GeoDistCommand, v as GeoHashCommand, t as GeoMember, w as GeoPosCommand, x as GeoSearchCommand, y as GeoSearchStoreCommand, H as GetBitCommand, z as GetCommand, I as GetDelCommand, J as GetExCommand, K as GetRangeCommand, L as GetSetCommand, M as HDelCommand, N as HExistsCommand, O as HExpireCommand, S as HGetAllCommand, Q as HGetCommand, T as HIncrByCommand, V as HIncrByFloatCommand, W as HKeysCommand, X as HLenCommand, Y as HMGetCommand, Z as HMSetCommand, _ as HRandFieldCommand, $ as HScanCommand, a0 as HSetCommand, a1 as HSetNXCommand, a2 as HStrLenCommand, a3 as HValsCommand, a5 as IncrByCommand, a6 as IncrByFloatCommand, a4 as IncrCommand, a7 as JsonArrAppendCommand, a8 as JsonArrIndexCommand, a9 as JsonArrInsertCommand, aa as JsonArrLenCommand, ab as JsonArrPopCommand, ac as JsonArrTrimCommand, ad as JsonClearCommand, ae as JsonDelCommand, af as JsonForgetCommand, ag as JsonGetCommand, ai as JsonMGetCommand, ah as JsonMergeCommand, aj as JsonNumIncrByCommand, ak as JsonNumMultByCommand, al as JsonObjKeysCommand, am as JsonObjLenCommand, an as JsonRespCommand, ao as JsonSetCommand, ap as JsonStrAppendCommand, aq as JsonStrLenCommand, ar as JsonToggleCommand, as as JsonTypeCommand, at as KeysCommand, au as LIndexCommand, av as LInsertCommand, aw as LLenCommand, ax as LMoveCommand, ay as LPopCommand, az as LPushCommand, aA as LPushXCommand, aB as LRangeCommand, aC as LRemCommand, aD as LSetCommand, aE as LTrimCommand, aF as MGetCommand, aG as MSetCommand, aH as MSetNXCommand, aK as PExpireAtCommand, aJ as PExpireCommand, aM as PSetEXCommand, aN as PTtlCommand, aI as PersistCommand, aL as PingCommand, P as Pipeline, aO as PublishCommand, aS as RPopCommand, aT as RPushCommand, aU as RPushXCommand, aP as RandomKeyCommand, aQ as RenameCommand, aR as RenameNXCommand, d as Requester, aV as SAddCommand, aY as SCardCommand, b0 as SDiffCommand, b1 as SDiffStoreCommand, b8 as SInterCommand, b9 as SInterStoreCommand, ba as SIsMemberCommand, bc as SMIsMemberCommand, bb as SMembersCommand, bd as SMoveCommand, be as SPopCommand, bf as SRandMemberCommand, bg as SRemCommand, bh as SScanCommand, bj as SUnionCommand, bk as SUnionStoreCommand, aW as ScanCommand, aX as ScanCommandOptions, bt as ScoreMember, aZ as ScriptExistsCommand, a_ as ScriptFlushCommand, a$ as ScriptLoadCommand, b4 as SetBitCommand, b2 as SetCommand, b3 as SetCommandOptions, b5 as SetExCommand, b6 as SetNxCommand, b7 as SetRangeCommand, bi as StrLenCommand, bl as TimeCommand, bm as TouchCommand, bn as TtlCommand, bo as Type, bp as TypeCommand, bq as UnlinkCommand, U as UpstashRequest, c as UpstashResponse, br as XAddCommand, bs as XRangeCommand, bv as ZAddCommand, bu as ZAddCommandOptions, bw as ZCardCommand, bx as ZCountCommand, by as ZDiffStoreCommand, bz as ZIncrByCommand, bA as ZInterStoreCommand, bB as ZInterStoreCommandOptions, bC as ZLexCountCommand, bD as ZMScoreCommand, bE as ZPopMaxCommand, bF as ZPopMinCommand, bG as ZRangeCommand, bH as ZRangeCommandOptions, bI as ZRankCommand, bJ as ZRemCommand, bK as ZRemRangeByLexCommand, bL as ZRemRangeByRankCommand, bM as ZRemRangeByScoreCommand, bN as ZRevRankCommand, bO as ZScanCommand, bP as ZScoreCommand, bQ as ZUnionCommand, bR as ZUnionCommandOptions, bS as ZUnionStoreCommand, bT as ZUnionStoreCommandOptions, e as errors } from './zmscore-hRk-rDLY.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.
package/nodejs.js CHANGED
@@ -305,6 +305,23 @@ function merge(obj, key, value) {
305
305
  }
306
306
 
307
307
  // pkg/auto-pipeline.ts
308
+ var EXCLUDE_COMMANDS = /* @__PURE__ */ new Set([
309
+ "scan",
310
+ "keys",
311
+ "flushdb",
312
+ "flushall",
313
+ "dbsize",
314
+ "hscan",
315
+ "hgetall",
316
+ "hkeys",
317
+ "lrange",
318
+ "sscan",
319
+ "smembers",
320
+ "xrange",
321
+ "xrevrange",
322
+ "zscan",
323
+ "zrange"
324
+ ]);
308
325
  function createAutoPipelineProxy(_redis, json) {
309
326
  const redis = _redis;
310
327
  if (!redis.autoPipelineExecutor) {
@@ -319,7 +336,8 @@ function createAutoPipelineProxy(_redis, json) {
319
336
  return createAutoPipelineProxy(redis2, true);
320
337
  }
321
338
  const commandInRedisButNotPipeline = command in redis2 && !(command in redis2.autoPipelineExecutor.pipeline);
322
- if (commandInRedisButNotPipeline) {
339
+ const isCommandExcluded = EXCLUDE_COMMANDS.has(command);
340
+ if (commandInRedisButNotPipeline || isCommandExcluded) {
323
341
  return redis2[command];
324
342
  }
325
343
  const isFunction = json ? typeof redis2.autoPipelineExecutor.pipeline.json[command] === "function" : typeof redis2.autoPipelineExecutor.pipeline[command] === "function";
@@ -456,26 +474,6 @@ var Command = class {
456
474
  }
457
475
  };
458
476
 
459
- // pkg/commands/hexpire.ts
460
- var HExpireCommand = class extends Command {
461
- constructor(cmd, opts) {
462
- const [key, fields, seconds, option] = cmd;
463
- const fieldArray = Array.isArray(fields) ? fields : [fields];
464
- super(
465
- [
466
- "hexpire",
467
- key,
468
- seconds,
469
- ...option ? [option] : [],
470
- "FIELDS",
471
- fieldArray.length,
472
- ...fieldArray
473
- ],
474
- opts
475
- );
476
- }
477
- };
478
-
479
477
  // pkg/commands/append.ts
480
478
  var AppendCommand = class extends Command {
481
479
  constructor(cmd, opts) {
@@ -893,6 +891,122 @@ var HExistsCommand = class extends Command {
893
891
  }
894
892
  };
895
893
 
894
+ // pkg/commands/hexpire.ts
895
+ var HExpireCommand = class extends Command {
896
+ constructor(cmd, opts) {
897
+ const [key, fields, seconds, option] = cmd;
898
+ const fieldArray = Array.isArray(fields) ? fields : [fields];
899
+ super(
900
+ [
901
+ "hexpire",
902
+ key,
903
+ seconds,
904
+ ...option ? [option] : [],
905
+ "FIELDS",
906
+ fieldArray.length,
907
+ ...fieldArray
908
+ ],
909
+ opts
910
+ );
911
+ }
912
+ };
913
+
914
+ // pkg/commands/hexpireat.ts
915
+ var HExpireAtCommand = class extends Command {
916
+ constructor(cmd, opts) {
917
+ const [key, fields, timestamp, option] = cmd;
918
+ const fieldArray = Array.isArray(fields) ? fields : [fields];
919
+ super(
920
+ [
921
+ "hexpireat",
922
+ key,
923
+ timestamp,
924
+ ...option ? [option] : [],
925
+ "FIELDS",
926
+ fieldArray.length,
927
+ ...fieldArray
928
+ ],
929
+ opts
930
+ );
931
+ }
932
+ };
933
+
934
+ // pkg/commands/hexpiretime.ts
935
+ var HExpireTimeCommand = class extends Command {
936
+ constructor(cmd, opts) {
937
+ const [key, fields] = cmd;
938
+ const fieldArray = Array.isArray(fields) ? fields : [fields];
939
+ super(["hexpiretime", key, "FIELDS", fieldArray.length, ...fieldArray], opts);
940
+ }
941
+ };
942
+
943
+ // pkg/commands/hpersist.ts
944
+ var HPersistCommand = class extends Command {
945
+ constructor(cmd, opts) {
946
+ const [key, fields] = cmd;
947
+ const fieldArray = Array.isArray(fields) ? fields : [fields];
948
+ super(["hpersist", key, "FIELDS", fieldArray.length, ...fieldArray], opts);
949
+ }
950
+ };
951
+
952
+ // pkg/commands/hpexpire.ts
953
+ var HPExpireCommand = class extends Command {
954
+ constructor(cmd, opts) {
955
+ const [key, fields, milliseconds, option] = cmd;
956
+ const fieldArray = Array.isArray(fields) ? fields : [fields];
957
+ super(
958
+ [
959
+ "hpexpire",
960
+ key,
961
+ milliseconds,
962
+ ...option ? [option] : [],
963
+ "FIELDS",
964
+ fieldArray.length,
965
+ ...fieldArray
966
+ ],
967
+ opts
968
+ );
969
+ }
970
+ };
971
+
972
+ // pkg/commands/hpexpireat.ts
973
+ var HPExpireAtCommand = class extends Command {
974
+ constructor(cmd, opts) {
975
+ const [key, fields, timestamp, option] = cmd;
976
+ const fieldArray = Array.isArray(fields) ? fields : [fields];
977
+ super(
978
+ [
979
+ "hpexpireat",
980
+ key,
981
+ timestamp,
982
+ ...option ? [option] : [],
983
+ "FIELDS",
984
+ fieldArray.length,
985
+ ...fieldArray
986
+ ],
987
+ opts
988
+ );
989
+ }
990
+ };
991
+
992
+ // pkg/commands/hpexpiretime.ts
993
+ var HPExpireTimeCommand = class extends Command {
994
+ constructor(cmd, opts) {
995
+ const [key, fields] = cmd;
996
+ const fieldArray = Array.isArray(fields) ? fields : [fields];
997
+ super(["hpexpiretime", key, "FIELDS", fieldArray.length, ...fieldArray], opts);
998
+ }
999
+ };
1000
+
1001
+ // pkg/commands/hpttl.ts
1002
+ var HPTtlCommand = class extends Command {
1003
+ constructor(cmd, opts) {
1004
+ const [key, fields] = cmd;
1005
+ const fieldArray = Array.isArray(fields) ? fields : [fields];
1006
+ super(["hpttl", key, "FIELDS", fieldArray.length, ...fieldArray], opts);
1007
+ }
1008
+ };
1009
+
896
1010
  // pkg/commands/hget.ts
897
1011
  var HGetCommand = class extends Command {
898
1012
  constructor(cmd, opts) {
@@ -1058,6 +1172,15 @@ var HStrLenCommand = class extends Command {
1058
1172
  }
1059
1173
  };
1060
1174
 
1175
+ // pkg/commands/httl.ts
1176
+ var HTtlCommand = class extends Command {
1177
+ constructor(cmd, opts) {
1178
+ const [key, fields] = cmd;
1179
+ const fieldArray = Array.isArray(fields) ? fields : [fields];
1180
+ super(["httl", key, "FIELDS", fieldArray.length, ...fieldArray], opts);
1181
+ }
1182
+ };
1183
+
1061
1184
  // pkg/commands/hvals.ts
1062
1185
  var HValsCommand = class extends Command {
1063
1186
  constructor(cmd, opts) {
@@ -2752,6 +2875,38 @@ var Pipeline = class {
2752
2875
  * @see https://redis.io/commands/hexpire
2753
2876
  */
2754
2877
  hexpire = (...args) => this.chain(new HExpireCommand(args, this.commandOptions));
2878
+ /**
2879
+ * @see https://redis.io/commands/hexpireat
2880
+ */
2881
+ hexpireat = (...args) => this.chain(new HExpireAtCommand(args, this.commandOptions));
2882
+ /**
2883
+ * @see https://redis.io/commands/hexpiretime
2884
+ */
2885
+ hexpiretime = (...args) => this.chain(new HExpireTimeCommand(args, this.commandOptions));
2886
+ /**
2887
+ * @see https://redis.io/commands/httl
2888
+ */
2889
+ httl = (...args) => this.chain(new HTtlCommand(args, this.commandOptions));
2890
+ /**
2891
+ * @see https://redis.io/commands/hpexpire
2892
+ */
2893
+ hpexpire = (...args) => this.chain(new HPExpireCommand(args, this.commandOptions));
2894
+ /**
2895
+ * @see https://redis.io/commands/hpexpireat
2896
+ */
2897
+ hpexpireat = (...args) => this.chain(new HPExpireAtCommand(args, this.commandOptions));
2898
+ /**
2899
+ * @see https://redis.io/commands/hpexpiretime
2900
+ */
2901
+ hpexpiretime = (...args) => this.chain(new HPExpireTimeCommand(args, this.commandOptions));
2902
+ /**
2903
+ * @see https://redis.io/commands/hpttl
2904
+ */
2905
+ hpttl = (...args) => this.chain(new HPTtlCommand(args, this.commandOptions));
2906
+ /**
2907
+ * @see https://redis.io/commands/hpersist
2908
+ */
2909
+ hpersist = (...args) => this.chain(new HPersistCommand(args, this.commandOptions));
2755
2910
  /**
2756
2911
  * @see https://redis.io/commands/hget
2757
2912
  */
@@ -3782,6 +3937,38 @@ var Redis = class {
3782
3937
  * @see https://redis.io/commands/hexpire
3783
3938
  */
3784
3939
  hexpire = (...args) => new HExpireCommand(args, this.opts).exec(this.client);
3940
+ /**
3941
+ * @see https://redis.io/commands/hexpireat
3942
+ */
3943
+ hexpireat = (...args) => new HExpireAtCommand(args, this.opts).exec(this.client);
3944
+ /**
3945
+ * @see https://redis.io/commands/hexpiretime
3946
+ */
3947
+ hexpiretime = (...args) => new HExpireTimeCommand(args, this.opts).exec(this.client);
3948
+ /**
3949
+ * @see https://redis.io/commands/httl
3950
+ */
3951
+ httl = (...args) => new HTtlCommand(args, this.opts).exec(this.client);
3952
+ /**
3953
+ * @see https://redis.io/commands/hpexpire
3954
+ */
3955
+ hpexpire = (...args) => new HPExpireCommand(args, this.opts).exec(this.client);
3956
+ /**
3957
+ * @see https://redis.io/commands/hpexpireat
3958
+ */
3959
+ hpexpireat = (...args) => new HPExpireAtCommand(args, this.opts).exec(this.client);
3960
+ /**
3961
+ * @see https://redis.io/commands/hpexpiretime
3962
+ */
3963
+ hpexpiretime = (...args) => new HPExpireTimeCommand(args, this.opts).exec(this.client);
3964
+ /**
3965
+ * @see https://redis.io/commands/hpttl
3966
+ */
3967
+ hpttl = (...args) => new HPTtlCommand(args, this.opts).exec(this.client);
3968
+ /**
3969
+ * @see https://redis.io/commands/hpersist
3970
+ */
3971
+ hpersist = (...args) => new HPersistCommand(args, this.opts).exec(this.client);
3785
3972
  /**
3786
3973
  * @see https://redis.io/commands/hget
3787
3974
  */
@@ -4273,7 +4460,7 @@ var Redis = class {
4273
4460
  };
4274
4461
 
4275
4462
  // version.ts
4276
- var VERSION = "v1.34.7";
4463
+ var VERSION = "v1.34.9";
4277
4464
 
4278
4465
  // platforms/nodejs.ts
4279
4466
  if (typeof atob === "undefined") {
package/nodejs.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  Redis,
4
4
  VERSION,
5
5
  error_exports
6
- } from "./chunk-TA73MYTP.mjs";
6
+ } from "./chunk-TZPYH7UX.mjs";
7
7
 
8
8
  // platforms/nodejs.ts
9
9
  if (typeof atob === "undefined") {