@upstash/redis 1.34.7 → 1.34.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{chunk-TA73MYTP.mjs → chunk-5XANP4AV.mjs} +190 -21
- package/cloudflare.d.mts +2 -2
- package/cloudflare.d.ts +2 -2
- package/cloudflare.js +190 -21
- package/cloudflare.mjs +1 -1
- package/fastly.d.mts +2 -2
- package/fastly.d.ts +2 -2
- package/fastly.js +190 -21
- package/fastly.mjs +1 -1
- package/nodejs.d.mts +2 -2
- package/nodejs.d.ts +2 -2
- package/nodejs.js +190 -21
- package/nodejs.mjs +1 -1
- package/package.json +1 -1
- package/{zmscore-hRk-rDLY.d.mts → zmscore-CjoCv9kz.d.mts} +128 -17
- package/{zmscore-hRk-rDLY.d.ts → zmscore-CjoCv9kz.d.ts} +128 -17
package/fastly.js
CHANGED
|
@@ -456,26 +456,6 @@ var Command = class {
|
|
|
456
456
|
}
|
|
457
457
|
};
|
|
458
458
|
|
|
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
459
|
// pkg/commands/append.ts
|
|
480
460
|
var AppendCommand = class extends Command {
|
|
481
461
|
constructor(cmd, opts) {
|
|
@@ -893,6 +873,122 @@ var HExistsCommand = class extends Command {
|
|
|
893
873
|
}
|
|
894
874
|
};
|
|
895
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
|
+
|
|
896
992
|
// pkg/commands/hget.ts
|
|
897
993
|
var HGetCommand = class extends Command {
|
|
898
994
|
constructor(cmd, opts) {
|
|
@@ -1058,6 +1154,15 @@ var HStrLenCommand = class extends Command {
|
|
|
1058
1154
|
}
|
|
1059
1155
|
};
|
|
1060
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
|
+
|
|
1061
1166
|
// pkg/commands/hvals.ts
|
|
1062
1167
|
var HValsCommand = class extends Command {
|
|
1063
1168
|
constructor(cmd, opts) {
|
|
@@ -2752,6 +2857,38 @@ var Pipeline = class {
|
|
|
2752
2857
|
* @see https://redis.io/commands/hexpire
|
|
2753
2858
|
*/
|
|
2754
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));
|
|
2755
2892
|
/**
|
|
2756
2893
|
* @see https://redis.io/commands/hget
|
|
2757
2894
|
*/
|
|
@@ -3782,6 +3919,38 @@ var Redis = class {
|
|
|
3782
3919
|
* @see https://redis.io/commands/hexpire
|
|
3783
3920
|
*/
|
|
3784
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);
|
|
3785
3954
|
/**
|
|
3786
3955
|
* @see https://redis.io/commands/hget
|
|
3787
3956
|
*/
|
|
@@ -4273,7 +4442,7 @@ var Redis = class {
|
|
|
4273
4442
|
};
|
|
4274
4443
|
|
|
4275
4444
|
// version.ts
|
|
4276
|
-
var VERSION = "v1.34.
|
|
4445
|
+
var VERSION = "v1.34.8";
|
|
4277
4446
|
|
|
4278
4447
|
// platforms/fastly.ts
|
|
4279
4448
|
var Redis2 = class extends Redis {
|
package/fastly.mjs
CHANGED
package/nodejs.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RedisOptions, a as RequesterConfig, b as Redis$1 } from './zmscore-
|
|
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,
|
|
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-
|
|
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,
|
|
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
|
@@ -456,26 +456,6 @@ var Command = class {
|
|
|
456
456
|
}
|
|
457
457
|
};
|
|
458
458
|
|
|
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
459
|
// pkg/commands/append.ts
|
|
480
460
|
var AppendCommand = class extends Command {
|
|
481
461
|
constructor(cmd, opts) {
|
|
@@ -893,6 +873,122 @@ var HExistsCommand = class extends Command {
|
|
|
893
873
|
}
|
|
894
874
|
};
|
|
895
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
|
+
|
|
896
992
|
// pkg/commands/hget.ts
|
|
897
993
|
var HGetCommand = class extends Command {
|
|
898
994
|
constructor(cmd, opts) {
|
|
@@ -1058,6 +1154,15 @@ var HStrLenCommand = class extends Command {
|
|
|
1058
1154
|
}
|
|
1059
1155
|
};
|
|
1060
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
|
+
|
|
1061
1166
|
// pkg/commands/hvals.ts
|
|
1062
1167
|
var HValsCommand = class extends Command {
|
|
1063
1168
|
constructor(cmd, opts) {
|
|
@@ -2752,6 +2857,38 @@ var Pipeline = class {
|
|
|
2752
2857
|
* @see https://redis.io/commands/hexpire
|
|
2753
2858
|
*/
|
|
2754
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));
|
|
2755
2892
|
/**
|
|
2756
2893
|
* @see https://redis.io/commands/hget
|
|
2757
2894
|
*/
|
|
@@ -3782,6 +3919,38 @@ var Redis = class {
|
|
|
3782
3919
|
* @see https://redis.io/commands/hexpire
|
|
3783
3920
|
*/
|
|
3784
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);
|
|
3785
3954
|
/**
|
|
3786
3955
|
* @see https://redis.io/commands/hget
|
|
3787
3956
|
*/
|
|
@@ -4273,7 +4442,7 @@ var Redis = class {
|
|
|
4273
4442
|
};
|
|
4274
4443
|
|
|
4275
4444
|
// version.ts
|
|
4276
|
-
var VERSION = "v1.34.
|
|
4445
|
+
var VERSION = "v1.34.8";
|
|
4277
4446
|
|
|
4278
4447
|
// platforms/nodejs.ts
|
|
4279
4448
|
if (typeof atob === "undefined") {
|
package/nodejs.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@upstash/redis","version":"v1.34.
|
|
1
|
+
{"name":"@upstash/redis","version":"v1.34.8","main":"./nodejs.js","module":"./nodejs.mjs","types":"./nodejs.d.ts","exports":{".":{"import":"./nodejs.mjs","require":"./nodejs.js"},"./node":{"import":"./nodejs.mjs","require":"./nodejs.js"},"./cloudflare":{"import":"./cloudflare.mjs","require":"./cloudflare.js"},"./cloudflare.js":{"import":"./cloudflare.mjs","require":"./cloudflare.js"},"./cloudflare.mjs":{"import":"./cloudflare.mjs","require":"./cloudflare.js"},"./fastly":{"import":"./fastly.mjs","require":"./fastly.js"},"./fastly.js":{"import":"./fastly.mjs","require":"./fastly.js"},"./fastly.mjs":{"import":"./fastly.mjs","require":"./fastly.js"}},"description":"An HTTP/REST based Redis client built on top of Upstash REST API.","repository":{"type":"git","url":"git+https://github.com/upstash/upstash-redis.git"},"keywords":["redis","database","serverless","edge","upstash"],"files":["./*"],"scripts":{"build":"tsup && cp package.json README.md LICENSE dist/","test":"bun test pkg","fmt":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","lint":"eslint \"**/*.{js,ts,tsx}\" --quiet --fix","format":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","format:check":"prettier --check \"**/*.{ts,tsx,js,jsx,json,md}\"","lint:fix":"eslint . -c .ts,.tsx,.js,.jsx --fix","commit":"cz","lint:format":"bun run lint:fix && bun run format","check-exports":"bun run build && cd dist && attw -P"},"author":"Andreas Thomas <dev@chronark.com>","license":"MIT","bugs":{"url":"https://github.com/upstash/upstash-redis/issues"},"homepage":"https://github.com/upstash/upstash-redis#readme","devDependencies":{"@biomejs/biome":"latest","@commitlint/cli":"^19.3.0","@commitlint/config-conventional":"^19.2.2","@types/crypto-js":"^4.1.3","@typescript-eslint/eslint-plugin":"8.4.0","@typescript-eslint/parser":"8.4.0","bun-types":"1.0.33","eslint":"9.10.0","eslint-plugin-unicorn":"55.0.0","husky":"^9.1.1","prettier":"^3.3.3","tsup":"^8.2.3","typescript":"latest"},"dependencies":{"crypto-js":"^4.2.0"}}
|