@upstash/redis 1.36.2 → 1.36.4-rc
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-Q3SWX4BB.mjs → chunk-YNGLWG7A.mjs} +37 -7
- package/cloudflare.d.mts +2 -2
- package/cloudflare.d.ts +2 -2
- package/cloudflare.js +37 -7
- package/cloudflare.mjs +1 -1
- package/fastly.d.mts +2 -2
- package/fastly.d.ts +2 -2
- package/fastly.js +37 -7
- package/fastly.mjs +1 -1
- package/nodejs.d.mts +2 -2
- package/nodejs.d.ts +2 -2
- package/nodejs.js +37 -7
- package/nodejs.mjs +1 -1
- package/package.json +1 -1
- package/{zmscore-BjNXmrug.d.mts → zmscore-Dq2s28SC.d.mts} +28 -5
- package/{zmscore-BjNXmrug.d.ts → zmscore-Dq2s28SC.d.ts} +28 -5
|
@@ -1880,6 +1880,18 @@ var SInterCommand = class extends Command {
|
|
|
1880
1880
|
}
|
|
1881
1881
|
};
|
|
1882
1882
|
|
|
1883
|
+
// pkg/commands/sintercard.ts
|
|
1884
|
+
var SInterCardCommand = class extends Command {
|
|
1885
|
+
constructor(cmd, cmdOpts) {
|
|
1886
|
+
const [keys, opts] = cmd;
|
|
1887
|
+
const command = ["sintercard", keys.length, ...keys];
|
|
1888
|
+
if (opts?.limit !== void 0) {
|
|
1889
|
+
command.push("LIMIT", opts.limit);
|
|
1890
|
+
}
|
|
1891
|
+
super(command, cmdOpts);
|
|
1892
|
+
}
|
|
1893
|
+
};
|
|
1894
|
+
|
|
1883
1895
|
// pkg/commands/sinterstore.ts
|
|
1884
1896
|
var SInterStoreCommand = class extends Command {
|
|
1885
1897
|
constructor(cmd, opts) {
|
|
@@ -3111,6 +3123,10 @@ var Pipeline = class {
|
|
|
3111
3123
|
* @see https://redis.io/commands/sinter
|
|
3112
3124
|
*/
|
|
3113
3125
|
sinter = (...args) => this.chain(new SInterCommand(args, this.commandOptions));
|
|
3126
|
+
/**
|
|
3127
|
+
* @see https://redis.io/commands/sintercard
|
|
3128
|
+
*/
|
|
3129
|
+
sintercard = (...args) => this.chain(new SInterCardCommand(args, this.commandOptions));
|
|
3114
3130
|
/**
|
|
3115
3131
|
* @see https://redis.io/commands/sinterstore
|
|
3116
3132
|
*/
|
|
@@ -3766,6 +3782,7 @@ var Script = class {
|
|
|
3766
3782
|
* future major release.
|
|
3767
3783
|
*/
|
|
3768
3784
|
sha1;
|
|
3785
|
+
initPromise;
|
|
3769
3786
|
redis;
|
|
3770
3787
|
constructor(redis, script) {
|
|
3771
3788
|
this.redis = redis;
|
|
@@ -3776,9 +3793,13 @@ var Script = class {
|
|
|
3776
3793
|
/**
|
|
3777
3794
|
* Initialize the script by computing its SHA-1 hash.
|
|
3778
3795
|
*/
|
|
3779
|
-
|
|
3780
|
-
if (this.
|
|
3781
|
-
|
|
3796
|
+
init(script) {
|
|
3797
|
+
if (!this.initPromise) {
|
|
3798
|
+
this.initPromise = this.digest(script).then((sha1) => {
|
|
3799
|
+
this.sha1 = sha1;
|
|
3800
|
+
});
|
|
3801
|
+
}
|
|
3802
|
+
return this.initPromise;
|
|
3782
3803
|
}
|
|
3783
3804
|
/**
|
|
3784
3805
|
* Send an `EVAL` command to redis.
|
|
@@ -3833,6 +3854,7 @@ var ScriptRO = class {
|
|
|
3833
3854
|
* future major release.
|
|
3834
3855
|
*/
|
|
3835
3856
|
sha1;
|
|
3857
|
+
initPromise;
|
|
3836
3858
|
redis;
|
|
3837
3859
|
constructor(redis, script) {
|
|
3838
3860
|
this.redis = redis;
|
|
@@ -3840,9 +3862,13 @@ var ScriptRO = class {
|
|
|
3840
3862
|
this.script = script;
|
|
3841
3863
|
void this.init(script);
|
|
3842
3864
|
}
|
|
3843
|
-
|
|
3844
|
-
if (this.
|
|
3845
|
-
|
|
3865
|
+
init(script) {
|
|
3866
|
+
if (!this.initPromise) {
|
|
3867
|
+
this.initPromise = this.digest(script).then((sha1) => {
|
|
3868
|
+
this.sha1 = sha1;
|
|
3869
|
+
});
|
|
3870
|
+
}
|
|
3871
|
+
return this.initPromise;
|
|
3846
3872
|
}
|
|
3847
3873
|
/**
|
|
3848
3874
|
* Send an `EVAL_RO` command to redis.
|
|
@@ -4592,6 +4618,10 @@ var Redis = class {
|
|
|
4592
4618
|
* @see https://redis.io/commands/sinter
|
|
4593
4619
|
*/
|
|
4594
4620
|
sinter = (...args) => new SInterCommand(args, this.opts).exec(this.client);
|
|
4621
|
+
/**
|
|
4622
|
+
* @see https://redis.io/commands/sintercard
|
|
4623
|
+
*/
|
|
4624
|
+
sintercard = (...args) => new SInterCardCommand(args, this.opts).exec(this.client);
|
|
4595
4625
|
/**
|
|
4596
4626
|
* @see https://redis.io/commands/sinterstore
|
|
4597
4627
|
*/
|
|
@@ -4828,7 +4858,7 @@ var Redis = class {
|
|
|
4828
4858
|
};
|
|
4829
4859
|
|
|
4830
4860
|
// version.ts
|
|
4831
|
-
var VERSION = "v1.36.
|
|
4861
|
+
var VERSION = "v1.36.4-rc";
|
|
4832
4862
|
|
|
4833
4863
|
export {
|
|
4834
4864
|
error_exports,
|
package/cloudflare.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as HttpClientConfig, 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, h as ClientSetInfoAttribute, C as ClientSetInfoCommand, i as CopyCommand, D as DBSizeCommand, k as DecrByCommand, j as DecrCommand, l as DelCommand, E as EchoCommand, n as EvalCommand, m as EvalROCommand, p as EvalshaCommand, o as EvalshaROCommand, q as ExistsCommand, t as ExpireAtCommand, r as ExpireCommand, s as ExpireOption, F as FlushAllCommand, u as FlushDBCommand, G as GeoAddCommand, v as GeoAddCommandOptions, x as GeoDistCommand, y as GeoHashCommand, w as GeoMember, z as GeoPosCommand, I as GeoSearchCommand, J as GeoSearchStoreCommand, L as GetBitCommand, K as GetCommand, M as GetDelCommand, N as GetExCommand, O as GetRangeCommand, Q as GetSetCommand, S as HDelCommand, T as HExistsCommand, W as HExpireAtCommand, V as HExpireCommand, X as HExpireTimeCommand, a3 as HGetAllCommand, a2 as HGetCommand, a4 as HGetDelCommand, a5 as HGetExCommand, a6 as HIncrByCommand, a7 as HIncrByFloatCommand, a8 as HKeysCommand, a9 as HLenCommand, aa as HMGetCommand, ab as HMSetCommand, _ as HPExpireAtCommand, Z as HPExpireCommand, $ as HPExpireTimeCommand, a0 as HPTtlCommand, a1 as HPersistCommand, ac as HRandFieldCommand, ad as HScanCommand, ae as HSetCommand, af as HSetExCommand, ag as HSetNXCommand, ah as HStrLenCommand, Y as HTtlCommand, ai as HValsCommand, ak as IncrByCommand, al as IncrByFloatCommand, aj as IncrCommand, am as JsonArrAppendCommand, an as JsonArrIndexCommand, ao as JsonArrInsertCommand, ap as JsonArrLenCommand, aq as JsonArrPopCommand, ar as JsonArrTrimCommand, as as JsonClearCommand, at as JsonDelCommand, au as JsonForgetCommand, av as JsonGetCommand, ax as JsonMGetCommand, aw as JsonMergeCommand, ay as JsonNumIncrByCommand, az as JsonNumMultByCommand, aA as JsonObjKeysCommand, aB as JsonObjLenCommand, aC as JsonRespCommand, aD as JsonSetCommand, aE as JsonStrAppendCommand, aF as JsonStrLenCommand, aG as JsonToggleCommand, aH as JsonTypeCommand, aI as KeysCommand, aJ as LIndexCommand, aK as LInsertCommand, aL as LLenCommand, aM as LMoveCommand, aN as LPopCommand, aO as LPushCommand, aP as LPushXCommand, aQ as LRangeCommand, aR as LRemCommand, aS as LSetCommand, aT as LTrimCommand, aU as MGetCommand, aV as MSetCommand, aW as MSetNXCommand, aZ as PExpireAtCommand, aY as PExpireCommand, a$ as PSetEXCommand, b0 as PTtlCommand, aX as PersistCommand, a_ as PingCommand, P as Pipeline, b1 as PublishCommand, b5 as RPopCommand, b6 as RPushCommand, b7 as RPushXCommand, b2 as RandomKeyCommand, b3 as RenameCommand, b4 as RenameNXCommand, c as Requester, b8 as SAddCommand, bb as SCardCommand, bf as SDiffCommand, bg as SDiffStoreCommand, bn as SInterCommand,
|
|
1
|
+
import { H as HttpClientConfig, R as RedisOptions, a as RequesterConfig, b as Redis$1 } from './zmscore-Dq2s28SC.mjs';
|
|
2
|
+
export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, h as ClientSetInfoAttribute, C as ClientSetInfoCommand, i as CopyCommand, D as DBSizeCommand, k as DecrByCommand, j as DecrCommand, l as DelCommand, E as EchoCommand, n as EvalCommand, m as EvalROCommand, p as EvalshaCommand, o as EvalshaROCommand, q as ExistsCommand, t as ExpireAtCommand, r as ExpireCommand, s as ExpireOption, F as FlushAllCommand, u as FlushDBCommand, G as GeoAddCommand, v as GeoAddCommandOptions, x as GeoDistCommand, y as GeoHashCommand, w as GeoMember, z as GeoPosCommand, I as GeoSearchCommand, J as GeoSearchStoreCommand, L as GetBitCommand, K as GetCommand, M as GetDelCommand, N as GetExCommand, O as GetRangeCommand, Q as GetSetCommand, S as HDelCommand, T as HExistsCommand, W as HExpireAtCommand, V as HExpireCommand, X as HExpireTimeCommand, a3 as HGetAllCommand, a2 as HGetCommand, a4 as HGetDelCommand, a5 as HGetExCommand, a6 as HIncrByCommand, a7 as HIncrByFloatCommand, a8 as HKeysCommand, a9 as HLenCommand, aa as HMGetCommand, ab as HMSetCommand, _ as HPExpireAtCommand, Z as HPExpireCommand, $ as HPExpireTimeCommand, a0 as HPTtlCommand, a1 as HPersistCommand, ac as HRandFieldCommand, ad as HScanCommand, ae as HSetCommand, af as HSetExCommand, ag as HSetNXCommand, ah as HStrLenCommand, Y as HTtlCommand, ai as HValsCommand, ak as IncrByCommand, al as IncrByFloatCommand, aj as IncrCommand, am as JsonArrAppendCommand, an as JsonArrIndexCommand, ao as JsonArrInsertCommand, ap as JsonArrLenCommand, aq as JsonArrPopCommand, ar as JsonArrTrimCommand, as as JsonClearCommand, at as JsonDelCommand, au as JsonForgetCommand, av as JsonGetCommand, ax as JsonMGetCommand, aw as JsonMergeCommand, ay as JsonNumIncrByCommand, az as JsonNumMultByCommand, aA as JsonObjKeysCommand, aB as JsonObjLenCommand, aC as JsonRespCommand, aD as JsonSetCommand, aE as JsonStrAppendCommand, aF as JsonStrLenCommand, aG as JsonToggleCommand, aH as JsonTypeCommand, aI as KeysCommand, aJ as LIndexCommand, aK as LInsertCommand, aL as LLenCommand, aM as LMoveCommand, aN as LPopCommand, aO as LPushCommand, aP as LPushXCommand, aQ as LRangeCommand, aR as LRemCommand, aS as LSetCommand, aT as LTrimCommand, aU as MGetCommand, aV as MSetCommand, aW as MSetNXCommand, aZ as PExpireAtCommand, aY as PExpireCommand, a$ as PSetEXCommand, b0 as PTtlCommand, aX as PersistCommand, a_ as PingCommand, P as Pipeline, b1 as PublishCommand, b5 as RPopCommand, b6 as RPushCommand, b7 as RPushXCommand, b2 as RandomKeyCommand, b3 as RenameCommand, b4 as RenameNXCommand, c as Requester, b8 as SAddCommand, bb as SCardCommand, bf as SDiffCommand, bg as SDiffStoreCommand, bo as SInterCardCommand, bn as SInterCommand, bp as SInterStoreCommand, bq as SIsMemberCommand, bs as SMIsMemberCommand, br as SMembersCommand, bt as SMoveCommand, bu as SPopCommand, bv as SRandMemberCommand, bw as SRemCommand, bx as SScanCommand, bz as SUnionCommand, bA as SUnionStoreCommand, b9 as ScanCommand, ba as ScanCommandOptions, bL as ScoreMember, bc as ScriptExistsCommand, bd as ScriptFlushCommand, be as ScriptLoadCommand, bj as SetBitCommand, bh as SetCommand, bi as SetCommandOptions, bk as SetExCommand, bl as SetNxCommand, bm as SetRangeCommand, by as StrLenCommand, bB as TimeCommand, bC as TouchCommand, bD as TtlCommand, bE as Type, bF as TypeCommand, bG as UnlinkCommand, U as UpstashRequest, d as UpstashResponse, bI as XAckDelCommand, bH as XAddCommand, bJ as XDelExCommand, bK as XRangeCommand, bN as ZAddCommand, bM as ZAddCommandOptions, bO as ZCardCommand, bP as ZCountCommand, bQ as ZDiffStoreCommand, bR as ZIncrByCommand, bS as ZInterStoreCommand, bT as ZInterStoreCommandOptions, bU as ZLexCountCommand, bV as ZMScoreCommand, bW as ZPopMaxCommand, bX as ZPopMinCommand, bY as ZRangeCommand, bZ as ZRangeCommandOptions, b_ as ZRankCommand, b$ as ZRemCommand, c0 as ZRemRangeByLexCommand, c1 as ZRemRangeByRankCommand, c2 as ZRemRangeByScoreCommand, c3 as ZRevRankCommand, c4 as ZScanCommand, c5 as ZScoreCommand, c6 as ZUnionCommand, c7 as ZUnionCommandOptions, c8 as ZUnionStoreCommand, c9 as ZUnionStoreCommandOptions, e as errors } from './zmscore-Dq2s28SC.mjs';
|
|
3
3
|
|
|
4
4
|
type Env = {
|
|
5
5
|
UPSTASH_DISABLE_TELEMETRY?: string;
|
package/cloudflare.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as HttpClientConfig, 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, h as ClientSetInfoAttribute, C as ClientSetInfoCommand, i as CopyCommand, D as DBSizeCommand, k as DecrByCommand, j as DecrCommand, l as DelCommand, E as EchoCommand, n as EvalCommand, m as EvalROCommand, p as EvalshaCommand, o as EvalshaROCommand, q as ExistsCommand, t as ExpireAtCommand, r as ExpireCommand, s as ExpireOption, F as FlushAllCommand, u as FlushDBCommand, G as GeoAddCommand, v as GeoAddCommandOptions, x as GeoDistCommand, y as GeoHashCommand, w as GeoMember, z as GeoPosCommand, I as GeoSearchCommand, J as GeoSearchStoreCommand, L as GetBitCommand, K as GetCommand, M as GetDelCommand, N as GetExCommand, O as GetRangeCommand, Q as GetSetCommand, S as HDelCommand, T as HExistsCommand, W as HExpireAtCommand, V as HExpireCommand, X as HExpireTimeCommand, a3 as HGetAllCommand, a2 as HGetCommand, a4 as HGetDelCommand, a5 as HGetExCommand, a6 as HIncrByCommand, a7 as HIncrByFloatCommand, a8 as HKeysCommand, a9 as HLenCommand, aa as HMGetCommand, ab as HMSetCommand, _ as HPExpireAtCommand, Z as HPExpireCommand, $ as HPExpireTimeCommand, a0 as HPTtlCommand, a1 as HPersistCommand, ac as HRandFieldCommand, ad as HScanCommand, ae as HSetCommand, af as HSetExCommand, ag as HSetNXCommand, ah as HStrLenCommand, Y as HTtlCommand, ai as HValsCommand, ak as IncrByCommand, al as IncrByFloatCommand, aj as IncrCommand, am as JsonArrAppendCommand, an as JsonArrIndexCommand, ao as JsonArrInsertCommand, ap as JsonArrLenCommand, aq as JsonArrPopCommand, ar as JsonArrTrimCommand, as as JsonClearCommand, at as JsonDelCommand, au as JsonForgetCommand, av as JsonGetCommand, ax as JsonMGetCommand, aw as JsonMergeCommand, ay as JsonNumIncrByCommand, az as JsonNumMultByCommand, aA as JsonObjKeysCommand, aB as JsonObjLenCommand, aC as JsonRespCommand, aD as JsonSetCommand, aE as JsonStrAppendCommand, aF as JsonStrLenCommand, aG as JsonToggleCommand, aH as JsonTypeCommand, aI as KeysCommand, aJ as LIndexCommand, aK as LInsertCommand, aL as LLenCommand, aM as LMoveCommand, aN as LPopCommand, aO as LPushCommand, aP as LPushXCommand, aQ as LRangeCommand, aR as LRemCommand, aS as LSetCommand, aT as LTrimCommand, aU as MGetCommand, aV as MSetCommand, aW as MSetNXCommand, aZ as PExpireAtCommand, aY as PExpireCommand, a$ as PSetEXCommand, b0 as PTtlCommand, aX as PersistCommand, a_ as PingCommand, P as Pipeline, b1 as PublishCommand, b5 as RPopCommand, b6 as RPushCommand, b7 as RPushXCommand, b2 as RandomKeyCommand, b3 as RenameCommand, b4 as RenameNXCommand, c as Requester, b8 as SAddCommand, bb as SCardCommand, bf as SDiffCommand, bg as SDiffStoreCommand, bn as SInterCommand,
|
|
1
|
+
import { H as HttpClientConfig, R as RedisOptions, a as RequesterConfig, b as Redis$1 } from './zmscore-Dq2s28SC.js';
|
|
2
|
+
export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, h as ClientSetInfoAttribute, C as ClientSetInfoCommand, i as CopyCommand, D as DBSizeCommand, k as DecrByCommand, j as DecrCommand, l as DelCommand, E as EchoCommand, n as EvalCommand, m as EvalROCommand, p as EvalshaCommand, o as EvalshaROCommand, q as ExistsCommand, t as ExpireAtCommand, r as ExpireCommand, s as ExpireOption, F as FlushAllCommand, u as FlushDBCommand, G as GeoAddCommand, v as GeoAddCommandOptions, x as GeoDistCommand, y as GeoHashCommand, w as GeoMember, z as GeoPosCommand, I as GeoSearchCommand, J as GeoSearchStoreCommand, L as GetBitCommand, K as GetCommand, M as GetDelCommand, N as GetExCommand, O as GetRangeCommand, Q as GetSetCommand, S as HDelCommand, T as HExistsCommand, W as HExpireAtCommand, V as HExpireCommand, X as HExpireTimeCommand, a3 as HGetAllCommand, a2 as HGetCommand, a4 as HGetDelCommand, a5 as HGetExCommand, a6 as HIncrByCommand, a7 as HIncrByFloatCommand, a8 as HKeysCommand, a9 as HLenCommand, aa as HMGetCommand, ab as HMSetCommand, _ as HPExpireAtCommand, Z as HPExpireCommand, $ as HPExpireTimeCommand, a0 as HPTtlCommand, a1 as HPersistCommand, ac as HRandFieldCommand, ad as HScanCommand, ae as HSetCommand, af as HSetExCommand, ag as HSetNXCommand, ah as HStrLenCommand, Y as HTtlCommand, ai as HValsCommand, ak as IncrByCommand, al as IncrByFloatCommand, aj as IncrCommand, am as JsonArrAppendCommand, an as JsonArrIndexCommand, ao as JsonArrInsertCommand, ap as JsonArrLenCommand, aq as JsonArrPopCommand, ar as JsonArrTrimCommand, as as JsonClearCommand, at as JsonDelCommand, au as JsonForgetCommand, av as JsonGetCommand, ax as JsonMGetCommand, aw as JsonMergeCommand, ay as JsonNumIncrByCommand, az as JsonNumMultByCommand, aA as JsonObjKeysCommand, aB as JsonObjLenCommand, aC as JsonRespCommand, aD as JsonSetCommand, aE as JsonStrAppendCommand, aF as JsonStrLenCommand, aG as JsonToggleCommand, aH as JsonTypeCommand, aI as KeysCommand, aJ as LIndexCommand, aK as LInsertCommand, aL as LLenCommand, aM as LMoveCommand, aN as LPopCommand, aO as LPushCommand, aP as LPushXCommand, aQ as LRangeCommand, aR as LRemCommand, aS as LSetCommand, aT as LTrimCommand, aU as MGetCommand, aV as MSetCommand, aW as MSetNXCommand, aZ as PExpireAtCommand, aY as PExpireCommand, a$ as PSetEXCommand, b0 as PTtlCommand, aX as PersistCommand, a_ as PingCommand, P as Pipeline, b1 as PublishCommand, b5 as RPopCommand, b6 as RPushCommand, b7 as RPushXCommand, b2 as RandomKeyCommand, b3 as RenameCommand, b4 as RenameNXCommand, c as Requester, b8 as SAddCommand, bb as SCardCommand, bf as SDiffCommand, bg as SDiffStoreCommand, bo as SInterCardCommand, bn as SInterCommand, bp as SInterStoreCommand, bq as SIsMemberCommand, bs as SMIsMemberCommand, br as SMembersCommand, bt as SMoveCommand, bu as SPopCommand, bv as SRandMemberCommand, bw as SRemCommand, bx as SScanCommand, bz as SUnionCommand, bA as SUnionStoreCommand, b9 as ScanCommand, ba as ScanCommandOptions, bL as ScoreMember, bc as ScriptExistsCommand, bd as ScriptFlushCommand, be as ScriptLoadCommand, bj as SetBitCommand, bh as SetCommand, bi as SetCommandOptions, bk as SetExCommand, bl as SetNxCommand, bm as SetRangeCommand, by as StrLenCommand, bB as TimeCommand, bC as TouchCommand, bD as TtlCommand, bE as Type, bF as TypeCommand, bG as UnlinkCommand, U as UpstashRequest, d as UpstashResponse, bI as XAckDelCommand, bH as XAddCommand, bJ as XDelExCommand, bK as XRangeCommand, bN as ZAddCommand, bM as ZAddCommandOptions, bO as ZCardCommand, bP as ZCountCommand, bQ as ZDiffStoreCommand, bR as ZIncrByCommand, bS as ZInterStoreCommand, bT as ZInterStoreCommandOptions, bU as ZLexCountCommand, bV as ZMScoreCommand, bW as ZPopMaxCommand, bX as ZPopMinCommand, bY as ZRangeCommand, bZ as ZRangeCommandOptions, b_ as ZRankCommand, b$ as ZRemCommand, c0 as ZRemRangeByLexCommand, c1 as ZRemRangeByRankCommand, c2 as ZRemRangeByScoreCommand, c3 as ZRevRankCommand, c4 as ZScanCommand, c5 as ZScoreCommand, c6 as ZUnionCommand, c7 as ZUnionCommandOptions, c8 as ZUnionStoreCommand, c9 as ZUnionStoreCommandOptions, e as errors } from './zmscore-Dq2s28SC.js';
|
|
3
3
|
|
|
4
4
|
type Env = {
|
|
5
5
|
UPSTASH_DISABLE_TELEMETRY?: string;
|
package/cloudflare.js
CHANGED
|
@@ -2001,6 +2001,18 @@ var SInterCommand = class extends Command {
|
|
|
2001
2001
|
}
|
|
2002
2002
|
};
|
|
2003
2003
|
|
|
2004
|
+
// pkg/commands/sintercard.ts
|
|
2005
|
+
var SInterCardCommand = class extends Command {
|
|
2006
|
+
constructor(cmd, cmdOpts) {
|
|
2007
|
+
const [keys, opts] = cmd;
|
|
2008
|
+
const command = ["sintercard", keys.length, ...keys];
|
|
2009
|
+
if (opts?.limit !== void 0) {
|
|
2010
|
+
command.push("LIMIT", opts.limit);
|
|
2011
|
+
}
|
|
2012
|
+
super(command, cmdOpts);
|
|
2013
|
+
}
|
|
2014
|
+
};
|
|
2015
|
+
|
|
2004
2016
|
// pkg/commands/sinterstore.ts
|
|
2005
2017
|
var SInterStoreCommand = class extends Command {
|
|
2006
2018
|
constructor(cmd, opts) {
|
|
@@ -3418,6 +3430,10 @@ var Pipeline = class {
|
|
|
3418
3430
|
* @see https://redis.io/commands/sinter
|
|
3419
3431
|
*/
|
|
3420
3432
|
sinter = (...args) => this.chain(new SInterCommand(args, this.commandOptions));
|
|
3433
|
+
/**
|
|
3434
|
+
* @see https://redis.io/commands/sintercard
|
|
3435
|
+
*/
|
|
3436
|
+
sintercard = (...args) => this.chain(new SInterCardCommand(args, this.commandOptions));
|
|
3421
3437
|
/**
|
|
3422
3438
|
* @see https://redis.io/commands/sinterstore
|
|
3423
3439
|
*/
|
|
@@ -3787,6 +3803,7 @@ var Script = class {
|
|
|
3787
3803
|
* future major release.
|
|
3788
3804
|
*/
|
|
3789
3805
|
sha1;
|
|
3806
|
+
initPromise;
|
|
3790
3807
|
redis;
|
|
3791
3808
|
constructor(redis, script) {
|
|
3792
3809
|
this.redis = redis;
|
|
@@ -3797,9 +3814,13 @@ var Script = class {
|
|
|
3797
3814
|
/**
|
|
3798
3815
|
* Initialize the script by computing its SHA-1 hash.
|
|
3799
3816
|
*/
|
|
3800
|
-
|
|
3801
|
-
if (this.
|
|
3802
|
-
|
|
3817
|
+
init(script) {
|
|
3818
|
+
if (!this.initPromise) {
|
|
3819
|
+
this.initPromise = this.digest(script).then((sha1) => {
|
|
3820
|
+
this.sha1 = sha1;
|
|
3821
|
+
});
|
|
3822
|
+
}
|
|
3823
|
+
return this.initPromise;
|
|
3803
3824
|
}
|
|
3804
3825
|
/**
|
|
3805
3826
|
* Send an `EVAL` command to redis.
|
|
@@ -3854,6 +3875,7 @@ var ScriptRO = class {
|
|
|
3854
3875
|
* future major release.
|
|
3855
3876
|
*/
|
|
3856
3877
|
sha1;
|
|
3878
|
+
initPromise;
|
|
3857
3879
|
redis;
|
|
3858
3880
|
constructor(redis, script) {
|
|
3859
3881
|
this.redis = redis;
|
|
@@ -3861,9 +3883,13 @@ var ScriptRO = class {
|
|
|
3861
3883
|
this.script = script;
|
|
3862
3884
|
void this.init(script);
|
|
3863
3885
|
}
|
|
3864
|
-
|
|
3865
|
-
if (this.
|
|
3866
|
-
|
|
3886
|
+
init(script) {
|
|
3887
|
+
if (!this.initPromise) {
|
|
3888
|
+
this.initPromise = this.digest(script).then((sha1) => {
|
|
3889
|
+
this.sha1 = sha1;
|
|
3890
|
+
});
|
|
3891
|
+
}
|
|
3892
|
+
return this.initPromise;
|
|
3867
3893
|
}
|
|
3868
3894
|
/**
|
|
3869
3895
|
* Send an `EVAL_RO` command to redis.
|
|
@@ -4613,6 +4639,10 @@ var Redis = class {
|
|
|
4613
4639
|
* @see https://redis.io/commands/sinter
|
|
4614
4640
|
*/
|
|
4615
4641
|
sinter = (...args) => new SInterCommand(args, this.opts).exec(this.client);
|
|
4642
|
+
/**
|
|
4643
|
+
* @see https://redis.io/commands/sintercard
|
|
4644
|
+
*/
|
|
4645
|
+
sintercard = (...args) => new SInterCardCommand(args, this.opts).exec(this.client);
|
|
4616
4646
|
/**
|
|
4617
4647
|
* @see https://redis.io/commands/sinterstore
|
|
4618
4648
|
*/
|
|
@@ -4849,7 +4879,7 @@ var Redis = class {
|
|
|
4849
4879
|
};
|
|
4850
4880
|
|
|
4851
4881
|
// version.ts
|
|
4852
|
-
var VERSION = "v1.36.
|
|
4882
|
+
var VERSION = "v1.36.4-rc";
|
|
4853
4883
|
|
|
4854
4884
|
// platforms/cloudflare.ts
|
|
4855
4885
|
var Redis2 = class _Redis extends Redis {
|
package/cloudflare.mjs
CHANGED
package/fastly.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, h as ClientSetInfoAttribute, C as ClientSetInfoCommand, i as CopyCommand, D as DBSizeCommand, k as DecrByCommand, j as DecrCommand, l as DelCommand, E as EchoCommand, n as EvalCommand, m as EvalROCommand, p as EvalshaCommand, o as EvalshaROCommand, q as ExistsCommand, t as ExpireAtCommand, r as ExpireCommand, s as ExpireOption, F as FlushAllCommand, u as FlushDBCommand, G as GeoAddCommand, v as GeoAddCommandOptions, x as GeoDistCommand, y as GeoHashCommand, w as GeoMember, z as GeoPosCommand, I as GeoSearchCommand, J as GeoSearchStoreCommand, L as GetBitCommand, K as GetCommand, M as GetDelCommand, N as GetExCommand, O as GetRangeCommand, Q as GetSetCommand, S as HDelCommand, T as HExistsCommand, W as HExpireAtCommand, V as HExpireCommand, X as HExpireTimeCommand, a3 as HGetAllCommand, a2 as HGetCommand, a4 as HGetDelCommand, a5 as HGetExCommand, a6 as HIncrByCommand, a7 as HIncrByFloatCommand, a8 as HKeysCommand, a9 as HLenCommand, aa as HMGetCommand, ab as HMSetCommand, _ as HPExpireAtCommand, Z as HPExpireCommand, $ as HPExpireTimeCommand, a0 as HPTtlCommand, a1 as HPersistCommand, ac as HRandFieldCommand, ad as HScanCommand, ae as HSetCommand, af as HSetExCommand, ag as HSetNXCommand, ah as HStrLenCommand, Y as HTtlCommand, ai as HValsCommand, ak as IncrByCommand, al as IncrByFloatCommand, aj as IncrCommand, am as JsonArrAppendCommand, an as JsonArrIndexCommand, ao as JsonArrInsertCommand, ap as JsonArrLenCommand, aq as JsonArrPopCommand, ar as JsonArrTrimCommand, as as JsonClearCommand, at as JsonDelCommand, au as JsonForgetCommand, av as JsonGetCommand, ax as JsonMGetCommand, aw as JsonMergeCommand, ay as JsonNumIncrByCommand, az as JsonNumMultByCommand, aA as JsonObjKeysCommand, aB as JsonObjLenCommand, aC as JsonRespCommand, aD as JsonSetCommand, aE as JsonStrAppendCommand, aF as JsonStrLenCommand, aG as JsonToggleCommand, aH as JsonTypeCommand, aI as KeysCommand, aJ as LIndexCommand, aK as LInsertCommand, aL as LLenCommand, aM as LMoveCommand, aN as LPopCommand, aO as LPushCommand, aP as LPushXCommand, aQ as LRangeCommand, aR as LRemCommand, aS as LSetCommand, aT as LTrimCommand, aU as MGetCommand, aV as MSetCommand, aW as MSetNXCommand, aZ as PExpireAtCommand, aY as PExpireCommand, a$ as PSetEXCommand, b0 as PTtlCommand, aX as PersistCommand, a_ as PingCommand, P as Pipeline, b1 as PublishCommand, b5 as RPopCommand, b6 as RPushCommand, b7 as RPushXCommand, b2 as RandomKeyCommand, b3 as RenameCommand, b4 as RenameNXCommand, c as Requester, b8 as SAddCommand, bb as SCardCommand, bf as SDiffCommand, bg as SDiffStoreCommand, bn as SInterCommand,
|
|
1
|
+
import { R as RedisOptions, a as RequesterConfig, b as Redis$1 } from './zmscore-Dq2s28SC.mjs';
|
|
2
|
+
export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, h as ClientSetInfoAttribute, C as ClientSetInfoCommand, i as CopyCommand, D as DBSizeCommand, k as DecrByCommand, j as DecrCommand, l as DelCommand, E as EchoCommand, n as EvalCommand, m as EvalROCommand, p as EvalshaCommand, o as EvalshaROCommand, q as ExistsCommand, t as ExpireAtCommand, r as ExpireCommand, s as ExpireOption, F as FlushAllCommand, u as FlushDBCommand, G as GeoAddCommand, v as GeoAddCommandOptions, x as GeoDistCommand, y as GeoHashCommand, w as GeoMember, z as GeoPosCommand, I as GeoSearchCommand, J as GeoSearchStoreCommand, L as GetBitCommand, K as GetCommand, M as GetDelCommand, N as GetExCommand, O as GetRangeCommand, Q as GetSetCommand, S as HDelCommand, T as HExistsCommand, W as HExpireAtCommand, V as HExpireCommand, X as HExpireTimeCommand, a3 as HGetAllCommand, a2 as HGetCommand, a4 as HGetDelCommand, a5 as HGetExCommand, a6 as HIncrByCommand, a7 as HIncrByFloatCommand, a8 as HKeysCommand, a9 as HLenCommand, aa as HMGetCommand, ab as HMSetCommand, _ as HPExpireAtCommand, Z as HPExpireCommand, $ as HPExpireTimeCommand, a0 as HPTtlCommand, a1 as HPersistCommand, ac as HRandFieldCommand, ad as HScanCommand, ae as HSetCommand, af as HSetExCommand, ag as HSetNXCommand, ah as HStrLenCommand, Y as HTtlCommand, ai as HValsCommand, ak as IncrByCommand, al as IncrByFloatCommand, aj as IncrCommand, am as JsonArrAppendCommand, an as JsonArrIndexCommand, ao as JsonArrInsertCommand, ap as JsonArrLenCommand, aq as JsonArrPopCommand, ar as JsonArrTrimCommand, as as JsonClearCommand, at as JsonDelCommand, au as JsonForgetCommand, av as JsonGetCommand, ax as JsonMGetCommand, aw as JsonMergeCommand, ay as JsonNumIncrByCommand, az as JsonNumMultByCommand, aA as JsonObjKeysCommand, aB as JsonObjLenCommand, aC as JsonRespCommand, aD as JsonSetCommand, aE as JsonStrAppendCommand, aF as JsonStrLenCommand, aG as JsonToggleCommand, aH as JsonTypeCommand, aI as KeysCommand, aJ as LIndexCommand, aK as LInsertCommand, aL as LLenCommand, aM as LMoveCommand, aN as LPopCommand, aO as LPushCommand, aP as LPushXCommand, aQ as LRangeCommand, aR as LRemCommand, aS as LSetCommand, aT as LTrimCommand, aU as MGetCommand, aV as MSetCommand, aW as MSetNXCommand, aZ as PExpireAtCommand, aY as PExpireCommand, a$ as PSetEXCommand, b0 as PTtlCommand, aX as PersistCommand, a_ as PingCommand, P as Pipeline, b1 as PublishCommand, b5 as RPopCommand, b6 as RPushCommand, b7 as RPushXCommand, b2 as RandomKeyCommand, b3 as RenameCommand, b4 as RenameNXCommand, c as Requester, b8 as SAddCommand, bb as SCardCommand, bf as SDiffCommand, bg as SDiffStoreCommand, bo as SInterCardCommand, bn as SInterCommand, bp as SInterStoreCommand, bq as SIsMemberCommand, bs as SMIsMemberCommand, br as SMembersCommand, bt as SMoveCommand, bu as SPopCommand, bv as SRandMemberCommand, bw as SRemCommand, bx as SScanCommand, bz as SUnionCommand, bA as SUnionStoreCommand, b9 as ScanCommand, ba as ScanCommandOptions, bL as ScoreMember, bc as ScriptExistsCommand, bd as ScriptFlushCommand, be as ScriptLoadCommand, bj as SetBitCommand, bh as SetCommand, bi as SetCommandOptions, bk as SetExCommand, bl as SetNxCommand, bm as SetRangeCommand, by as StrLenCommand, bB as TimeCommand, bC as TouchCommand, bD as TtlCommand, bE as Type, bF as TypeCommand, bG as UnlinkCommand, U as UpstashRequest, d as UpstashResponse, bI as XAckDelCommand, bH as XAddCommand, bJ as XDelExCommand, bK as XRangeCommand, bN as ZAddCommand, bM as ZAddCommandOptions, bO as ZCardCommand, bP as ZCountCommand, bQ as ZDiffStoreCommand, bR as ZIncrByCommand, bS as ZInterStoreCommand, bT as ZInterStoreCommandOptions, bU as ZLexCountCommand, bV as ZMScoreCommand, bW as ZPopMaxCommand, bX as ZPopMinCommand, bY as ZRangeCommand, bZ as ZRangeCommandOptions, b_ as ZRankCommand, b$ as ZRemCommand, c0 as ZRemRangeByLexCommand, c1 as ZRemRangeByRankCommand, c2 as ZRemRangeByScoreCommand, c3 as ZRevRankCommand, c4 as ZScanCommand, c5 as ZScoreCommand, c6 as ZUnionCommand, c7 as ZUnionCommandOptions, c8 as ZUnionStoreCommand, c9 as ZUnionStoreCommandOptions, e as errors } from './zmscore-Dq2s28SC.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-
|
|
2
|
-
export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, h as ClientSetInfoAttribute, C as ClientSetInfoCommand, i as CopyCommand, D as DBSizeCommand, k as DecrByCommand, j as DecrCommand, l as DelCommand, E as EchoCommand, n as EvalCommand, m as EvalROCommand, p as EvalshaCommand, o as EvalshaROCommand, q as ExistsCommand, t as ExpireAtCommand, r as ExpireCommand, s as ExpireOption, F as FlushAllCommand, u as FlushDBCommand, G as GeoAddCommand, v as GeoAddCommandOptions, x as GeoDistCommand, y as GeoHashCommand, w as GeoMember, z as GeoPosCommand, I as GeoSearchCommand, J as GeoSearchStoreCommand, L as GetBitCommand, K as GetCommand, M as GetDelCommand, N as GetExCommand, O as GetRangeCommand, Q as GetSetCommand, S as HDelCommand, T as HExistsCommand, W as HExpireAtCommand, V as HExpireCommand, X as HExpireTimeCommand, a3 as HGetAllCommand, a2 as HGetCommand, a4 as HGetDelCommand, a5 as HGetExCommand, a6 as HIncrByCommand, a7 as HIncrByFloatCommand, a8 as HKeysCommand, a9 as HLenCommand, aa as HMGetCommand, ab as HMSetCommand, _ as HPExpireAtCommand, Z as HPExpireCommand, $ as HPExpireTimeCommand, a0 as HPTtlCommand, a1 as HPersistCommand, ac as HRandFieldCommand, ad as HScanCommand, ae as HSetCommand, af as HSetExCommand, ag as HSetNXCommand, ah as HStrLenCommand, Y as HTtlCommand, ai as HValsCommand, ak as IncrByCommand, al as IncrByFloatCommand, aj as IncrCommand, am as JsonArrAppendCommand, an as JsonArrIndexCommand, ao as JsonArrInsertCommand, ap as JsonArrLenCommand, aq as JsonArrPopCommand, ar as JsonArrTrimCommand, as as JsonClearCommand, at as JsonDelCommand, au as JsonForgetCommand, av as JsonGetCommand, ax as JsonMGetCommand, aw as JsonMergeCommand, ay as JsonNumIncrByCommand, az as JsonNumMultByCommand, aA as JsonObjKeysCommand, aB as JsonObjLenCommand, aC as JsonRespCommand, aD as JsonSetCommand, aE as JsonStrAppendCommand, aF as JsonStrLenCommand, aG as JsonToggleCommand, aH as JsonTypeCommand, aI as KeysCommand, aJ as LIndexCommand, aK as LInsertCommand, aL as LLenCommand, aM as LMoveCommand, aN as LPopCommand, aO as LPushCommand, aP as LPushXCommand, aQ as LRangeCommand, aR as LRemCommand, aS as LSetCommand, aT as LTrimCommand, aU as MGetCommand, aV as MSetCommand, aW as MSetNXCommand, aZ as PExpireAtCommand, aY as PExpireCommand, a$ as PSetEXCommand, b0 as PTtlCommand, aX as PersistCommand, a_ as PingCommand, P as Pipeline, b1 as PublishCommand, b5 as RPopCommand, b6 as RPushCommand, b7 as RPushXCommand, b2 as RandomKeyCommand, b3 as RenameCommand, b4 as RenameNXCommand, c as Requester, b8 as SAddCommand, bb as SCardCommand, bf as SDiffCommand, bg as SDiffStoreCommand, bn as SInterCommand,
|
|
1
|
+
import { R as RedisOptions, a as RequesterConfig, b as Redis$1 } from './zmscore-Dq2s28SC.js';
|
|
2
|
+
export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, h as ClientSetInfoAttribute, C as ClientSetInfoCommand, i as CopyCommand, D as DBSizeCommand, k as DecrByCommand, j as DecrCommand, l as DelCommand, E as EchoCommand, n as EvalCommand, m as EvalROCommand, p as EvalshaCommand, o as EvalshaROCommand, q as ExistsCommand, t as ExpireAtCommand, r as ExpireCommand, s as ExpireOption, F as FlushAllCommand, u as FlushDBCommand, G as GeoAddCommand, v as GeoAddCommandOptions, x as GeoDistCommand, y as GeoHashCommand, w as GeoMember, z as GeoPosCommand, I as GeoSearchCommand, J as GeoSearchStoreCommand, L as GetBitCommand, K as GetCommand, M as GetDelCommand, N as GetExCommand, O as GetRangeCommand, Q as GetSetCommand, S as HDelCommand, T as HExistsCommand, W as HExpireAtCommand, V as HExpireCommand, X as HExpireTimeCommand, a3 as HGetAllCommand, a2 as HGetCommand, a4 as HGetDelCommand, a5 as HGetExCommand, a6 as HIncrByCommand, a7 as HIncrByFloatCommand, a8 as HKeysCommand, a9 as HLenCommand, aa as HMGetCommand, ab as HMSetCommand, _ as HPExpireAtCommand, Z as HPExpireCommand, $ as HPExpireTimeCommand, a0 as HPTtlCommand, a1 as HPersistCommand, ac as HRandFieldCommand, ad as HScanCommand, ae as HSetCommand, af as HSetExCommand, ag as HSetNXCommand, ah as HStrLenCommand, Y as HTtlCommand, ai as HValsCommand, ak as IncrByCommand, al as IncrByFloatCommand, aj as IncrCommand, am as JsonArrAppendCommand, an as JsonArrIndexCommand, ao as JsonArrInsertCommand, ap as JsonArrLenCommand, aq as JsonArrPopCommand, ar as JsonArrTrimCommand, as as JsonClearCommand, at as JsonDelCommand, au as JsonForgetCommand, av as JsonGetCommand, ax as JsonMGetCommand, aw as JsonMergeCommand, ay as JsonNumIncrByCommand, az as JsonNumMultByCommand, aA as JsonObjKeysCommand, aB as JsonObjLenCommand, aC as JsonRespCommand, aD as JsonSetCommand, aE as JsonStrAppendCommand, aF as JsonStrLenCommand, aG as JsonToggleCommand, aH as JsonTypeCommand, aI as KeysCommand, aJ as LIndexCommand, aK as LInsertCommand, aL as LLenCommand, aM as LMoveCommand, aN as LPopCommand, aO as LPushCommand, aP as LPushXCommand, aQ as LRangeCommand, aR as LRemCommand, aS as LSetCommand, aT as LTrimCommand, aU as MGetCommand, aV as MSetCommand, aW as MSetNXCommand, aZ as PExpireAtCommand, aY as PExpireCommand, a$ as PSetEXCommand, b0 as PTtlCommand, aX as PersistCommand, a_ as PingCommand, P as Pipeline, b1 as PublishCommand, b5 as RPopCommand, b6 as RPushCommand, b7 as RPushXCommand, b2 as RandomKeyCommand, b3 as RenameCommand, b4 as RenameNXCommand, c as Requester, b8 as SAddCommand, bb as SCardCommand, bf as SDiffCommand, bg as SDiffStoreCommand, bo as SInterCardCommand, bn as SInterCommand, bp as SInterStoreCommand, bq as SIsMemberCommand, bs as SMIsMemberCommand, br as SMembersCommand, bt as SMoveCommand, bu as SPopCommand, bv as SRandMemberCommand, bw as SRemCommand, bx as SScanCommand, bz as SUnionCommand, bA as SUnionStoreCommand, b9 as ScanCommand, ba as ScanCommandOptions, bL as ScoreMember, bc as ScriptExistsCommand, bd as ScriptFlushCommand, be as ScriptLoadCommand, bj as SetBitCommand, bh as SetCommand, bi as SetCommandOptions, bk as SetExCommand, bl as SetNxCommand, bm as SetRangeCommand, by as StrLenCommand, bB as TimeCommand, bC as TouchCommand, bD as TtlCommand, bE as Type, bF as TypeCommand, bG as UnlinkCommand, U as UpstashRequest, d as UpstashResponse, bI as XAckDelCommand, bH as XAddCommand, bJ as XDelExCommand, bK as XRangeCommand, bN as ZAddCommand, bM as ZAddCommandOptions, bO as ZCardCommand, bP as ZCountCommand, bQ as ZDiffStoreCommand, bR as ZIncrByCommand, bS as ZInterStoreCommand, bT as ZInterStoreCommandOptions, bU as ZLexCountCommand, bV as ZMScoreCommand, bW as ZPopMaxCommand, bX as ZPopMinCommand, bY as ZRangeCommand, bZ as ZRangeCommandOptions, b_ as ZRankCommand, b$ as ZRemCommand, c0 as ZRemRangeByLexCommand, c1 as ZRemRangeByRankCommand, c2 as ZRemRangeByScoreCommand, c3 as ZRevRankCommand, c4 as ZScanCommand, c5 as ZScoreCommand, c6 as ZUnionCommand, c7 as ZUnionCommandOptions, c8 as ZUnionStoreCommand, c9 as ZUnionStoreCommandOptions, e as errors } from './zmscore-Dq2s28SC.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Connection credentials for upstash redis.
|
package/fastly.js
CHANGED
|
@@ -2001,6 +2001,18 @@ var SInterCommand = class extends Command {
|
|
|
2001
2001
|
}
|
|
2002
2002
|
};
|
|
2003
2003
|
|
|
2004
|
+
// pkg/commands/sintercard.ts
|
|
2005
|
+
var SInterCardCommand = class extends Command {
|
|
2006
|
+
constructor(cmd, cmdOpts) {
|
|
2007
|
+
const [keys, opts] = cmd;
|
|
2008
|
+
const command = ["sintercard", keys.length, ...keys];
|
|
2009
|
+
if (opts?.limit !== void 0) {
|
|
2010
|
+
command.push("LIMIT", opts.limit);
|
|
2011
|
+
}
|
|
2012
|
+
super(command, cmdOpts);
|
|
2013
|
+
}
|
|
2014
|
+
};
|
|
2015
|
+
|
|
2004
2016
|
// pkg/commands/sinterstore.ts
|
|
2005
2017
|
var SInterStoreCommand = class extends Command {
|
|
2006
2018
|
constructor(cmd, opts) {
|
|
@@ -3418,6 +3430,10 @@ var Pipeline = class {
|
|
|
3418
3430
|
* @see https://redis.io/commands/sinter
|
|
3419
3431
|
*/
|
|
3420
3432
|
sinter = (...args) => this.chain(new SInterCommand(args, this.commandOptions));
|
|
3433
|
+
/**
|
|
3434
|
+
* @see https://redis.io/commands/sintercard
|
|
3435
|
+
*/
|
|
3436
|
+
sintercard = (...args) => this.chain(new SInterCardCommand(args, this.commandOptions));
|
|
3421
3437
|
/**
|
|
3422
3438
|
* @see https://redis.io/commands/sinterstore
|
|
3423
3439
|
*/
|
|
@@ -3787,6 +3803,7 @@ var Script = class {
|
|
|
3787
3803
|
* future major release.
|
|
3788
3804
|
*/
|
|
3789
3805
|
sha1;
|
|
3806
|
+
initPromise;
|
|
3790
3807
|
redis;
|
|
3791
3808
|
constructor(redis, script) {
|
|
3792
3809
|
this.redis = redis;
|
|
@@ -3797,9 +3814,13 @@ var Script = class {
|
|
|
3797
3814
|
/**
|
|
3798
3815
|
* Initialize the script by computing its SHA-1 hash.
|
|
3799
3816
|
*/
|
|
3800
|
-
|
|
3801
|
-
if (this.
|
|
3802
|
-
|
|
3817
|
+
init(script) {
|
|
3818
|
+
if (!this.initPromise) {
|
|
3819
|
+
this.initPromise = this.digest(script).then((sha1) => {
|
|
3820
|
+
this.sha1 = sha1;
|
|
3821
|
+
});
|
|
3822
|
+
}
|
|
3823
|
+
return this.initPromise;
|
|
3803
3824
|
}
|
|
3804
3825
|
/**
|
|
3805
3826
|
* Send an `EVAL` command to redis.
|
|
@@ -3854,6 +3875,7 @@ var ScriptRO = class {
|
|
|
3854
3875
|
* future major release.
|
|
3855
3876
|
*/
|
|
3856
3877
|
sha1;
|
|
3878
|
+
initPromise;
|
|
3857
3879
|
redis;
|
|
3858
3880
|
constructor(redis, script) {
|
|
3859
3881
|
this.redis = redis;
|
|
@@ -3861,9 +3883,13 @@ var ScriptRO = class {
|
|
|
3861
3883
|
this.script = script;
|
|
3862
3884
|
void this.init(script);
|
|
3863
3885
|
}
|
|
3864
|
-
|
|
3865
|
-
if (this.
|
|
3866
|
-
|
|
3886
|
+
init(script) {
|
|
3887
|
+
if (!this.initPromise) {
|
|
3888
|
+
this.initPromise = this.digest(script).then((sha1) => {
|
|
3889
|
+
this.sha1 = sha1;
|
|
3890
|
+
});
|
|
3891
|
+
}
|
|
3892
|
+
return this.initPromise;
|
|
3867
3893
|
}
|
|
3868
3894
|
/**
|
|
3869
3895
|
* Send an `EVAL_RO` command to redis.
|
|
@@ -4613,6 +4639,10 @@ var Redis = class {
|
|
|
4613
4639
|
* @see https://redis.io/commands/sinter
|
|
4614
4640
|
*/
|
|
4615
4641
|
sinter = (...args) => new SInterCommand(args, this.opts).exec(this.client);
|
|
4642
|
+
/**
|
|
4643
|
+
* @see https://redis.io/commands/sintercard
|
|
4644
|
+
*/
|
|
4645
|
+
sintercard = (...args) => new SInterCardCommand(args, this.opts).exec(this.client);
|
|
4616
4646
|
/**
|
|
4617
4647
|
* @see https://redis.io/commands/sinterstore
|
|
4618
4648
|
*/
|
|
@@ -4849,7 +4879,7 @@ var Redis = class {
|
|
|
4849
4879
|
};
|
|
4850
4880
|
|
|
4851
4881
|
// version.ts
|
|
4852
|
-
var VERSION = "v1.36.
|
|
4882
|
+
var VERSION = "v1.36.4-rc";
|
|
4853
4883
|
|
|
4854
4884
|
// platforms/fastly.ts
|
|
4855
4885
|
var Redis2 = class extends Redis {
|
package/fastly.mjs
CHANGED
package/nodejs.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as HttpClientConfig, R as RedisOptions, a as RequesterConfig, b as Redis$1, c as Requester } from './zmscore-
|
|
2
|
-
export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, h as ClientSetInfoAttribute, C as ClientSetInfoCommand, i as CopyCommand, D as DBSizeCommand, k as DecrByCommand, j as DecrCommand, l as DelCommand, E as EchoCommand, n as EvalCommand, m as EvalROCommand, p as EvalshaCommand, o as EvalshaROCommand, q as ExistsCommand, t as ExpireAtCommand, r as ExpireCommand, s as ExpireOption, F as FlushAllCommand, u as FlushDBCommand, G as GeoAddCommand, v as GeoAddCommandOptions, x as GeoDistCommand, y as GeoHashCommand, w as GeoMember, z as GeoPosCommand, I as GeoSearchCommand, J as GeoSearchStoreCommand, L as GetBitCommand, K as GetCommand, M as GetDelCommand, N as GetExCommand, O as GetRangeCommand, Q as GetSetCommand, S as HDelCommand, T as HExistsCommand, W as HExpireAtCommand, V as HExpireCommand, X as HExpireTimeCommand, a3 as HGetAllCommand, a2 as HGetCommand, a4 as HGetDelCommand, a5 as HGetExCommand, a6 as HIncrByCommand, a7 as HIncrByFloatCommand, a8 as HKeysCommand, a9 as HLenCommand, aa as HMGetCommand, ab as HMSetCommand, _ as HPExpireAtCommand, Z as HPExpireCommand, $ as HPExpireTimeCommand, a0 as HPTtlCommand, a1 as HPersistCommand, ac as HRandFieldCommand, ad as HScanCommand, ae as HSetCommand, af as HSetExCommand, ag as HSetNXCommand, ah as HStrLenCommand, Y as HTtlCommand, ai as HValsCommand, ak as IncrByCommand, al as IncrByFloatCommand, aj as IncrCommand, am as JsonArrAppendCommand, an as JsonArrIndexCommand, ao as JsonArrInsertCommand, ap as JsonArrLenCommand, aq as JsonArrPopCommand, ar as JsonArrTrimCommand, as as JsonClearCommand, at as JsonDelCommand, au as JsonForgetCommand, av as JsonGetCommand, ax as JsonMGetCommand, aw as JsonMergeCommand, ay as JsonNumIncrByCommand, az as JsonNumMultByCommand, aA as JsonObjKeysCommand, aB as JsonObjLenCommand, aC as JsonRespCommand, aD as JsonSetCommand, aE as JsonStrAppendCommand, aF as JsonStrLenCommand, aG as JsonToggleCommand, aH as JsonTypeCommand, aI as KeysCommand, aJ as LIndexCommand, aK as LInsertCommand, aL as LLenCommand, aM as LMoveCommand, aN as LPopCommand, aO as LPushCommand, aP as LPushXCommand, aQ as LRangeCommand, aR as LRemCommand, aS as LSetCommand, aT as LTrimCommand, aU as MGetCommand, aV as MSetCommand, aW as MSetNXCommand, aZ as PExpireAtCommand, aY as PExpireCommand, a$ as PSetEXCommand, b0 as PTtlCommand, aX as PersistCommand, a_ as PingCommand, P as Pipeline, b1 as PublishCommand, b5 as RPopCommand, b6 as RPushCommand, b7 as RPushXCommand, b2 as RandomKeyCommand, b3 as RenameCommand, b4 as RenameNXCommand, b8 as SAddCommand, bb as SCardCommand, bf as SDiffCommand, bg as SDiffStoreCommand, bn as SInterCommand,
|
|
1
|
+
import { H as HttpClientConfig, R as RedisOptions, a as RequesterConfig, b as Redis$1, c as Requester } from './zmscore-Dq2s28SC.mjs';
|
|
2
|
+
export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, h as ClientSetInfoAttribute, C as ClientSetInfoCommand, i as CopyCommand, D as DBSizeCommand, k as DecrByCommand, j as DecrCommand, l as DelCommand, E as EchoCommand, n as EvalCommand, m as EvalROCommand, p as EvalshaCommand, o as EvalshaROCommand, q as ExistsCommand, t as ExpireAtCommand, r as ExpireCommand, s as ExpireOption, F as FlushAllCommand, u as FlushDBCommand, G as GeoAddCommand, v as GeoAddCommandOptions, x as GeoDistCommand, y as GeoHashCommand, w as GeoMember, z as GeoPosCommand, I as GeoSearchCommand, J as GeoSearchStoreCommand, L as GetBitCommand, K as GetCommand, M as GetDelCommand, N as GetExCommand, O as GetRangeCommand, Q as GetSetCommand, S as HDelCommand, T as HExistsCommand, W as HExpireAtCommand, V as HExpireCommand, X as HExpireTimeCommand, a3 as HGetAllCommand, a2 as HGetCommand, a4 as HGetDelCommand, a5 as HGetExCommand, a6 as HIncrByCommand, a7 as HIncrByFloatCommand, a8 as HKeysCommand, a9 as HLenCommand, aa as HMGetCommand, ab as HMSetCommand, _ as HPExpireAtCommand, Z as HPExpireCommand, $ as HPExpireTimeCommand, a0 as HPTtlCommand, a1 as HPersistCommand, ac as HRandFieldCommand, ad as HScanCommand, ae as HSetCommand, af as HSetExCommand, ag as HSetNXCommand, ah as HStrLenCommand, Y as HTtlCommand, ai as HValsCommand, ak as IncrByCommand, al as IncrByFloatCommand, aj as IncrCommand, am as JsonArrAppendCommand, an as JsonArrIndexCommand, ao as JsonArrInsertCommand, ap as JsonArrLenCommand, aq as JsonArrPopCommand, ar as JsonArrTrimCommand, as as JsonClearCommand, at as JsonDelCommand, au as JsonForgetCommand, av as JsonGetCommand, ax as JsonMGetCommand, aw as JsonMergeCommand, ay as JsonNumIncrByCommand, az as JsonNumMultByCommand, aA as JsonObjKeysCommand, aB as JsonObjLenCommand, aC as JsonRespCommand, aD as JsonSetCommand, aE as JsonStrAppendCommand, aF as JsonStrLenCommand, aG as JsonToggleCommand, aH as JsonTypeCommand, aI as KeysCommand, aJ as LIndexCommand, aK as LInsertCommand, aL as LLenCommand, aM as LMoveCommand, aN as LPopCommand, aO as LPushCommand, aP as LPushXCommand, aQ as LRangeCommand, aR as LRemCommand, aS as LSetCommand, aT as LTrimCommand, aU as MGetCommand, aV as MSetCommand, aW as MSetNXCommand, aZ as PExpireAtCommand, aY as PExpireCommand, a$ as PSetEXCommand, b0 as PTtlCommand, aX as PersistCommand, a_ as PingCommand, P as Pipeline, b1 as PublishCommand, b5 as RPopCommand, b6 as RPushCommand, b7 as RPushXCommand, b2 as RandomKeyCommand, b3 as RenameCommand, b4 as RenameNXCommand, b8 as SAddCommand, bb as SCardCommand, bf as SDiffCommand, bg as SDiffStoreCommand, bo as SInterCardCommand, bn as SInterCommand, bp as SInterStoreCommand, bq as SIsMemberCommand, bs as SMIsMemberCommand, br as SMembersCommand, bt as SMoveCommand, bu as SPopCommand, bv as SRandMemberCommand, bw as SRemCommand, bx as SScanCommand, bz as SUnionCommand, bA as SUnionStoreCommand, b9 as ScanCommand, ba as ScanCommandOptions, bL as ScoreMember, bc as ScriptExistsCommand, bd as ScriptFlushCommand, be as ScriptLoadCommand, bj as SetBitCommand, bh as SetCommand, bi as SetCommandOptions, bk as SetExCommand, bl as SetNxCommand, bm as SetRangeCommand, by as StrLenCommand, bB as TimeCommand, bC as TouchCommand, bD as TtlCommand, bE as Type, bF as TypeCommand, bG as UnlinkCommand, U as UpstashRequest, d as UpstashResponse, bI as XAckDelCommand, bH as XAddCommand, bJ as XDelExCommand, bK as XRangeCommand, bN as ZAddCommand, bM as ZAddCommandOptions, bO as ZCardCommand, bP as ZCountCommand, bQ as ZDiffStoreCommand, bR as ZIncrByCommand, bS as ZInterStoreCommand, bT as ZInterStoreCommandOptions, bU as ZLexCountCommand, bV as ZMScoreCommand, bW as ZPopMaxCommand, bX as ZPopMinCommand, bY as ZRangeCommand, bZ as ZRangeCommandOptions, b_ as ZRankCommand, b$ as ZRemCommand, c0 as ZRemRangeByLexCommand, c1 as ZRemRangeByRankCommand, c2 as ZRemRangeByScoreCommand, c3 as ZRevRankCommand, c4 as ZScanCommand, c5 as ZScoreCommand, c6 as ZUnionCommand, c7 as ZUnionCommandOptions, c8 as ZUnionStoreCommand, c9 as ZUnionStoreCommandOptions, e as errors } from './zmscore-Dq2s28SC.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Connection credentials for upstash redis.
|
package/nodejs.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as HttpClientConfig, R as RedisOptions, a as RequesterConfig, b as Redis$1, c as Requester } from './zmscore-
|
|
2
|
-
export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, h as ClientSetInfoAttribute, C as ClientSetInfoCommand, i as CopyCommand, D as DBSizeCommand, k as DecrByCommand, j as DecrCommand, l as DelCommand, E as EchoCommand, n as EvalCommand, m as EvalROCommand, p as EvalshaCommand, o as EvalshaROCommand, q as ExistsCommand, t as ExpireAtCommand, r as ExpireCommand, s as ExpireOption, F as FlushAllCommand, u as FlushDBCommand, G as GeoAddCommand, v as GeoAddCommandOptions, x as GeoDistCommand, y as GeoHashCommand, w as GeoMember, z as GeoPosCommand, I as GeoSearchCommand, J as GeoSearchStoreCommand, L as GetBitCommand, K as GetCommand, M as GetDelCommand, N as GetExCommand, O as GetRangeCommand, Q as GetSetCommand, S as HDelCommand, T as HExistsCommand, W as HExpireAtCommand, V as HExpireCommand, X as HExpireTimeCommand, a3 as HGetAllCommand, a2 as HGetCommand, a4 as HGetDelCommand, a5 as HGetExCommand, a6 as HIncrByCommand, a7 as HIncrByFloatCommand, a8 as HKeysCommand, a9 as HLenCommand, aa as HMGetCommand, ab as HMSetCommand, _ as HPExpireAtCommand, Z as HPExpireCommand, $ as HPExpireTimeCommand, a0 as HPTtlCommand, a1 as HPersistCommand, ac as HRandFieldCommand, ad as HScanCommand, ae as HSetCommand, af as HSetExCommand, ag as HSetNXCommand, ah as HStrLenCommand, Y as HTtlCommand, ai as HValsCommand, ak as IncrByCommand, al as IncrByFloatCommand, aj as IncrCommand, am as JsonArrAppendCommand, an as JsonArrIndexCommand, ao as JsonArrInsertCommand, ap as JsonArrLenCommand, aq as JsonArrPopCommand, ar as JsonArrTrimCommand, as as JsonClearCommand, at as JsonDelCommand, au as JsonForgetCommand, av as JsonGetCommand, ax as JsonMGetCommand, aw as JsonMergeCommand, ay as JsonNumIncrByCommand, az as JsonNumMultByCommand, aA as JsonObjKeysCommand, aB as JsonObjLenCommand, aC as JsonRespCommand, aD as JsonSetCommand, aE as JsonStrAppendCommand, aF as JsonStrLenCommand, aG as JsonToggleCommand, aH as JsonTypeCommand, aI as KeysCommand, aJ as LIndexCommand, aK as LInsertCommand, aL as LLenCommand, aM as LMoveCommand, aN as LPopCommand, aO as LPushCommand, aP as LPushXCommand, aQ as LRangeCommand, aR as LRemCommand, aS as LSetCommand, aT as LTrimCommand, aU as MGetCommand, aV as MSetCommand, aW as MSetNXCommand, aZ as PExpireAtCommand, aY as PExpireCommand, a$ as PSetEXCommand, b0 as PTtlCommand, aX as PersistCommand, a_ as PingCommand, P as Pipeline, b1 as PublishCommand, b5 as RPopCommand, b6 as RPushCommand, b7 as RPushXCommand, b2 as RandomKeyCommand, b3 as RenameCommand, b4 as RenameNXCommand, b8 as SAddCommand, bb as SCardCommand, bf as SDiffCommand, bg as SDiffStoreCommand, bn as SInterCommand,
|
|
1
|
+
import { H as HttpClientConfig, R as RedisOptions, a as RequesterConfig, b as Redis$1, c as Requester } from './zmscore-Dq2s28SC.js';
|
|
2
|
+
export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, h as ClientSetInfoAttribute, C as ClientSetInfoCommand, i as CopyCommand, D as DBSizeCommand, k as DecrByCommand, j as DecrCommand, l as DelCommand, E as EchoCommand, n as EvalCommand, m as EvalROCommand, p as EvalshaCommand, o as EvalshaROCommand, q as ExistsCommand, t as ExpireAtCommand, r as ExpireCommand, s as ExpireOption, F as FlushAllCommand, u as FlushDBCommand, G as GeoAddCommand, v as GeoAddCommandOptions, x as GeoDistCommand, y as GeoHashCommand, w as GeoMember, z as GeoPosCommand, I as GeoSearchCommand, J as GeoSearchStoreCommand, L as GetBitCommand, K as GetCommand, M as GetDelCommand, N as GetExCommand, O as GetRangeCommand, Q as GetSetCommand, S as HDelCommand, T as HExistsCommand, W as HExpireAtCommand, V as HExpireCommand, X as HExpireTimeCommand, a3 as HGetAllCommand, a2 as HGetCommand, a4 as HGetDelCommand, a5 as HGetExCommand, a6 as HIncrByCommand, a7 as HIncrByFloatCommand, a8 as HKeysCommand, a9 as HLenCommand, aa as HMGetCommand, ab as HMSetCommand, _ as HPExpireAtCommand, Z as HPExpireCommand, $ as HPExpireTimeCommand, a0 as HPTtlCommand, a1 as HPersistCommand, ac as HRandFieldCommand, ad as HScanCommand, ae as HSetCommand, af as HSetExCommand, ag as HSetNXCommand, ah as HStrLenCommand, Y as HTtlCommand, ai as HValsCommand, ak as IncrByCommand, al as IncrByFloatCommand, aj as IncrCommand, am as JsonArrAppendCommand, an as JsonArrIndexCommand, ao as JsonArrInsertCommand, ap as JsonArrLenCommand, aq as JsonArrPopCommand, ar as JsonArrTrimCommand, as as JsonClearCommand, at as JsonDelCommand, au as JsonForgetCommand, av as JsonGetCommand, ax as JsonMGetCommand, aw as JsonMergeCommand, ay as JsonNumIncrByCommand, az as JsonNumMultByCommand, aA as JsonObjKeysCommand, aB as JsonObjLenCommand, aC as JsonRespCommand, aD as JsonSetCommand, aE as JsonStrAppendCommand, aF as JsonStrLenCommand, aG as JsonToggleCommand, aH as JsonTypeCommand, aI as KeysCommand, aJ as LIndexCommand, aK as LInsertCommand, aL as LLenCommand, aM as LMoveCommand, aN as LPopCommand, aO as LPushCommand, aP as LPushXCommand, aQ as LRangeCommand, aR as LRemCommand, aS as LSetCommand, aT as LTrimCommand, aU as MGetCommand, aV as MSetCommand, aW as MSetNXCommand, aZ as PExpireAtCommand, aY as PExpireCommand, a$ as PSetEXCommand, b0 as PTtlCommand, aX as PersistCommand, a_ as PingCommand, P as Pipeline, b1 as PublishCommand, b5 as RPopCommand, b6 as RPushCommand, b7 as RPushXCommand, b2 as RandomKeyCommand, b3 as RenameCommand, b4 as RenameNXCommand, b8 as SAddCommand, bb as SCardCommand, bf as SDiffCommand, bg as SDiffStoreCommand, bo as SInterCardCommand, bn as SInterCommand, bp as SInterStoreCommand, bq as SIsMemberCommand, bs as SMIsMemberCommand, br as SMembersCommand, bt as SMoveCommand, bu as SPopCommand, bv as SRandMemberCommand, bw as SRemCommand, bx as SScanCommand, bz as SUnionCommand, bA as SUnionStoreCommand, b9 as ScanCommand, ba as ScanCommandOptions, bL as ScoreMember, bc as ScriptExistsCommand, bd as ScriptFlushCommand, be as ScriptLoadCommand, bj as SetBitCommand, bh as SetCommand, bi as SetCommandOptions, bk as SetExCommand, bl as SetNxCommand, bm as SetRangeCommand, by as StrLenCommand, bB as TimeCommand, bC as TouchCommand, bD as TtlCommand, bE as Type, bF as TypeCommand, bG as UnlinkCommand, U as UpstashRequest, d as UpstashResponse, bI as XAckDelCommand, bH as XAddCommand, bJ as XDelExCommand, bK as XRangeCommand, bN as ZAddCommand, bM as ZAddCommandOptions, bO as ZCardCommand, bP as ZCountCommand, bQ as ZDiffStoreCommand, bR as ZIncrByCommand, bS as ZInterStoreCommand, bT as ZInterStoreCommandOptions, bU as ZLexCountCommand, bV as ZMScoreCommand, bW as ZPopMaxCommand, bX as ZPopMinCommand, bY as ZRangeCommand, bZ as ZRangeCommandOptions, b_ as ZRankCommand, b$ as ZRemCommand, c0 as ZRemRangeByLexCommand, c1 as ZRemRangeByRankCommand, c2 as ZRemRangeByScoreCommand, c3 as ZRevRankCommand, c4 as ZScanCommand, c5 as ZScoreCommand, c6 as ZUnionCommand, c7 as ZUnionCommandOptions, c8 as ZUnionStoreCommand, c9 as ZUnionStoreCommandOptions, e as errors } from './zmscore-Dq2s28SC.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Connection credentials for upstash redis.
|
package/nodejs.js
CHANGED
|
@@ -2001,6 +2001,18 @@ var SInterCommand = class extends Command {
|
|
|
2001
2001
|
}
|
|
2002
2002
|
};
|
|
2003
2003
|
|
|
2004
|
+
// pkg/commands/sintercard.ts
|
|
2005
|
+
var SInterCardCommand = class extends Command {
|
|
2006
|
+
constructor(cmd, cmdOpts) {
|
|
2007
|
+
const [keys, opts] = cmd;
|
|
2008
|
+
const command = ["sintercard", keys.length, ...keys];
|
|
2009
|
+
if (opts?.limit !== void 0) {
|
|
2010
|
+
command.push("LIMIT", opts.limit);
|
|
2011
|
+
}
|
|
2012
|
+
super(command, cmdOpts);
|
|
2013
|
+
}
|
|
2014
|
+
};
|
|
2015
|
+
|
|
2004
2016
|
// pkg/commands/sinterstore.ts
|
|
2005
2017
|
var SInterStoreCommand = class extends Command {
|
|
2006
2018
|
constructor(cmd, opts) {
|
|
@@ -3418,6 +3430,10 @@ var Pipeline = class {
|
|
|
3418
3430
|
* @see https://redis.io/commands/sinter
|
|
3419
3431
|
*/
|
|
3420
3432
|
sinter = (...args) => this.chain(new SInterCommand(args, this.commandOptions));
|
|
3433
|
+
/**
|
|
3434
|
+
* @see https://redis.io/commands/sintercard
|
|
3435
|
+
*/
|
|
3436
|
+
sintercard = (...args) => this.chain(new SInterCardCommand(args, this.commandOptions));
|
|
3421
3437
|
/**
|
|
3422
3438
|
* @see https://redis.io/commands/sinterstore
|
|
3423
3439
|
*/
|
|
@@ -3787,6 +3803,7 @@ var Script = class {
|
|
|
3787
3803
|
* future major release.
|
|
3788
3804
|
*/
|
|
3789
3805
|
sha1;
|
|
3806
|
+
initPromise;
|
|
3790
3807
|
redis;
|
|
3791
3808
|
constructor(redis, script) {
|
|
3792
3809
|
this.redis = redis;
|
|
@@ -3797,9 +3814,13 @@ var Script = class {
|
|
|
3797
3814
|
/**
|
|
3798
3815
|
* Initialize the script by computing its SHA-1 hash.
|
|
3799
3816
|
*/
|
|
3800
|
-
|
|
3801
|
-
if (this.
|
|
3802
|
-
|
|
3817
|
+
init(script) {
|
|
3818
|
+
if (!this.initPromise) {
|
|
3819
|
+
this.initPromise = this.digest(script).then((sha1) => {
|
|
3820
|
+
this.sha1 = sha1;
|
|
3821
|
+
});
|
|
3822
|
+
}
|
|
3823
|
+
return this.initPromise;
|
|
3803
3824
|
}
|
|
3804
3825
|
/**
|
|
3805
3826
|
* Send an `EVAL` command to redis.
|
|
@@ -3854,6 +3875,7 @@ var ScriptRO = class {
|
|
|
3854
3875
|
* future major release.
|
|
3855
3876
|
*/
|
|
3856
3877
|
sha1;
|
|
3878
|
+
initPromise;
|
|
3857
3879
|
redis;
|
|
3858
3880
|
constructor(redis, script) {
|
|
3859
3881
|
this.redis = redis;
|
|
@@ -3861,9 +3883,13 @@ var ScriptRO = class {
|
|
|
3861
3883
|
this.script = script;
|
|
3862
3884
|
void this.init(script);
|
|
3863
3885
|
}
|
|
3864
|
-
|
|
3865
|
-
if (this.
|
|
3866
|
-
|
|
3886
|
+
init(script) {
|
|
3887
|
+
if (!this.initPromise) {
|
|
3888
|
+
this.initPromise = this.digest(script).then((sha1) => {
|
|
3889
|
+
this.sha1 = sha1;
|
|
3890
|
+
});
|
|
3891
|
+
}
|
|
3892
|
+
return this.initPromise;
|
|
3867
3893
|
}
|
|
3868
3894
|
/**
|
|
3869
3895
|
* Send an `EVAL_RO` command to redis.
|
|
@@ -4613,6 +4639,10 @@ var Redis = class {
|
|
|
4613
4639
|
* @see https://redis.io/commands/sinter
|
|
4614
4640
|
*/
|
|
4615
4641
|
sinter = (...args) => new SInterCommand(args, this.opts).exec(this.client);
|
|
4642
|
+
/**
|
|
4643
|
+
* @see https://redis.io/commands/sintercard
|
|
4644
|
+
*/
|
|
4645
|
+
sintercard = (...args) => new SInterCardCommand(args, this.opts).exec(this.client);
|
|
4616
4646
|
/**
|
|
4617
4647
|
* @see https://redis.io/commands/sinterstore
|
|
4618
4648
|
*/
|
|
@@ -4849,7 +4879,7 @@ var Redis = class {
|
|
|
4849
4879
|
};
|
|
4850
4880
|
|
|
4851
4881
|
// version.ts
|
|
4852
|
-
var VERSION = "v1.36.
|
|
4882
|
+
var VERSION = "v1.36.4-rc";
|
|
4853
4883
|
|
|
4854
4884
|
// platforms/nodejs.ts
|
|
4855
4885
|
if (typeof atob === "undefined") {
|
package/nodejs.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@upstash/redis","version":"v1.36.
|
|
1
|
+
{"name":"@upstash/redis","version":"v1.36.4-rc","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@github.com:upstash/redis-js.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","@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":{"uncrypto":"^0.1.3"}}
|
|
@@ -1583,6 +1583,15 @@ declare class SInterCommand<TData = string> extends Command<unknown[], TData[]>
|
|
|
1583
1583
|
constructor(cmd: [key: string, ...keys: string[]], opts?: CommandOptions<unknown[], TData[]>);
|
|
1584
1584
|
}
|
|
1585
1585
|
|
|
1586
|
+
/**
|
|
1587
|
+
* @see https://redis.io/commands/sintercard
|
|
1588
|
+
*/
|
|
1589
|
+
declare class SInterCardCommand extends Command<number, number> {
|
|
1590
|
+
constructor(cmd: [keys: string[], opts?: {
|
|
1591
|
+
limit?: number;
|
|
1592
|
+
}], cmdOpts?: CommandOptions<number, number>);
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1586
1595
|
/**
|
|
1587
1596
|
* @see https://redis.io/commands/sinterstore
|
|
1588
1597
|
*/
|
|
@@ -2782,6 +2791,12 @@ declare class Pipeline<TCommands extends Command<any, any>[] = []> {
|
|
|
2782
2791
|
* @see https://redis.io/commands/sinter
|
|
2783
2792
|
*/
|
|
2784
2793
|
sinter: (key: string, ...keys: string[]) => Pipeline<[...TCommands, Command<any, string[]>]>;
|
|
2794
|
+
/**
|
|
2795
|
+
* @see https://redis.io/commands/sintercard
|
|
2796
|
+
*/
|
|
2797
|
+
sintercard: (keys: string[], opts?: {
|
|
2798
|
+
limit?: number;
|
|
2799
|
+
} | undefined) => Pipeline<[...TCommands, Command<any, number>]>;
|
|
2785
2800
|
/**
|
|
2786
2801
|
* @see https://redis.io/commands/sinterstore
|
|
2787
2802
|
*/
|
|
@@ -2977,11 +2992,11 @@ declare class Pipeline<TCommands extends Command<any, any>[] = []> {
|
|
|
2977
2992
|
/**
|
|
2978
2993
|
* @see https://redis.io/commands/xrange
|
|
2979
2994
|
*/
|
|
2980
|
-
xrange: (key: string, start: string, end: string, count?: number | undefined) => Pipeline<[...TCommands, Command<any, Record<string,
|
|
2995
|
+
xrange: <TData extends Record<string, unknown>>(key: string, start: string, end: string, count?: number | undefined) => Pipeline<[...TCommands, Command<any, Record<string, TData>>]>;
|
|
2981
2996
|
/**
|
|
2982
2997
|
* @see https://redis.io/commands/xrevrange
|
|
2983
2998
|
*/
|
|
2984
|
-
xrevrange: (key: string, end: string, start: string, count?: number | undefined) => Pipeline<[...TCommands, Command<any, Record<string,
|
|
2999
|
+
xrevrange: <TData extends Record<string, unknown>>(key: string, end: string, start: string, count?: number | undefined) => Pipeline<[...TCommands, Command<any, Record<string, TData>>]>;
|
|
2985
3000
|
/**
|
|
2986
3001
|
* @see https://redis.io/commands/zcard
|
|
2987
3002
|
*/
|
|
@@ -3239,6 +3254,7 @@ declare class Script<TResult = unknown> {
|
|
|
3239
3254
|
* future major release.
|
|
3240
3255
|
*/
|
|
3241
3256
|
sha1: string;
|
|
3257
|
+
private initPromise;
|
|
3242
3258
|
private readonly redis;
|
|
3243
3259
|
constructor(redis: Redis, script: string);
|
|
3244
3260
|
/**
|
|
@@ -3292,6 +3308,7 @@ declare class ScriptRO<TResult = unknown> {
|
|
|
3292
3308
|
* future major release.
|
|
3293
3309
|
*/
|
|
3294
3310
|
sha1: string;
|
|
3311
|
+
private initPromise;
|
|
3295
3312
|
private readonly redis;
|
|
3296
3313
|
constructor(redis: Redis, script: string);
|
|
3297
3314
|
private init;
|
|
@@ -4197,6 +4214,12 @@ declare class Redis {
|
|
|
4197
4214
|
* @see https://redis.io/commands/sinter
|
|
4198
4215
|
*/
|
|
4199
4216
|
sinter: (key: string, ...keys: string[]) => Promise<string[]>;
|
|
4217
|
+
/**
|
|
4218
|
+
* @see https://redis.io/commands/sintercard
|
|
4219
|
+
*/
|
|
4220
|
+
sintercard: (keys: string[], opts?: {
|
|
4221
|
+
limit?: number;
|
|
4222
|
+
} | undefined) => Promise<number>;
|
|
4200
4223
|
/**
|
|
4201
4224
|
* @see https://redis.io/commands/sinterstore
|
|
4202
4225
|
*/
|
|
@@ -4392,11 +4415,11 @@ declare class Redis {
|
|
|
4392
4415
|
/**
|
|
4393
4416
|
* @see https://redis.io/commands/xrange
|
|
4394
4417
|
*/
|
|
4395
|
-
xrange: (key: string, start: string, end: string, count?: number | undefined) => Promise<Record<string,
|
|
4418
|
+
xrange: <TData extends Record<string, unknown>>(key: string, start: string, end: string, count?: number | undefined) => Promise<Record<string, TData>>;
|
|
4396
4419
|
/**
|
|
4397
4420
|
* @see https://redis.io/commands/xrevrange
|
|
4398
4421
|
*/
|
|
4399
|
-
xrevrange: (key: string, end: string, start: string, count?: number | undefined) => Promise<Record<string,
|
|
4422
|
+
xrevrange: <TData extends Record<string, unknown>>(key: string, end: string, start: string, count?: number | undefined) => Promise<Record<string, TData>>;
|
|
4400
4423
|
/**
|
|
4401
4424
|
* @see https://redis.io/commands/zadd
|
|
4402
4425
|
*/
|
|
@@ -4525,4 +4548,4 @@ declare class ZMScoreCommand<TData> extends Command<string[] | null, number[] |
|
|
|
4525
4548
|
constructor(cmd: [key: string, members: TData[]], opts?: CommandOptions<string[] | null, number[] | null>);
|
|
4526
4549
|
}
|
|
4527
4550
|
|
|
4528
|
-
export { HPExpireTimeCommand as $, AppendCommand as A, BitCountCommand as B, ClientSetInfoCommand as C, DBSizeCommand as D, EchoCommand as E, FlushAllCommand as F, GeoAddCommand as G, type HttpClientConfig as H, GeoSearchCommand as I, GeoSearchStoreCommand as J, GetCommand as K, GetBitCommand as L, GetDelCommand as M, GetExCommand as N, GetRangeCommand as O, Pipeline as P, GetSetCommand as Q, type RedisOptions as R, HDelCommand as S, HExistsCommand as T, type UpstashRequest as U, HExpireCommand as V, HExpireAtCommand as W, HExpireTimeCommand as X, HTtlCommand as Y, HPExpireCommand as Z, HPExpireAtCommand as _, type RequesterConfig as a, PSetEXCommand as a$, HPTtlCommand as a0, HPersistCommand as a1, HGetCommand as a2, HGetAllCommand as a3, HGetDelCommand as a4, HGetExCommand as a5, HIncrByCommand as a6, HIncrByFloatCommand as a7, HKeysCommand as a8, HLenCommand as a9, JsonObjKeysCommand as aA, JsonObjLenCommand as aB, JsonRespCommand as aC, JsonSetCommand as aD, JsonStrAppendCommand as aE, JsonStrLenCommand as aF, JsonToggleCommand as aG, JsonTypeCommand as aH, KeysCommand as aI, LIndexCommand as aJ, LInsertCommand as aK, LLenCommand as aL, LMoveCommand as aM, LPopCommand as aN, LPushCommand as aO, LPushXCommand as aP, LRangeCommand as aQ, LRemCommand as aR, LSetCommand as aS, LTrimCommand as aT, MGetCommand as aU, MSetCommand as aV, MSetNXCommand as aW, PersistCommand as aX, PExpireCommand as aY, PExpireAtCommand as aZ, PingCommand as a_, HMGetCommand as aa, HMSetCommand as ab, HRandFieldCommand as ac, HScanCommand as ad, HSetCommand as ae, HSetExCommand as af, HSetNXCommand as ag, HStrLenCommand as ah, HValsCommand as ai, IncrCommand as aj, IncrByCommand as ak, IncrByFloatCommand as al, JsonArrAppendCommand as am, JsonArrIndexCommand as an, JsonArrInsertCommand as ao, JsonArrLenCommand as ap, JsonArrPopCommand as aq, JsonArrTrimCommand as ar, JsonClearCommand as as, JsonDelCommand as at, JsonForgetCommand as au, JsonGetCommand as av, JsonMergeCommand as aw, JsonMGetCommand as ax, JsonNumIncrByCommand as ay, JsonNumMultByCommand as az, Redis as b,
|
|
4551
|
+
export { HPExpireTimeCommand as $, AppendCommand as A, BitCountCommand as B, ClientSetInfoCommand as C, DBSizeCommand as D, EchoCommand as E, FlushAllCommand as F, GeoAddCommand as G, type HttpClientConfig as H, GeoSearchCommand as I, GeoSearchStoreCommand as J, GetCommand as K, GetBitCommand as L, GetDelCommand as M, GetExCommand as N, GetRangeCommand as O, Pipeline as P, GetSetCommand as Q, type RedisOptions as R, HDelCommand as S, HExistsCommand as T, type UpstashRequest as U, HExpireCommand as V, HExpireAtCommand as W, HExpireTimeCommand as X, HTtlCommand as Y, HPExpireCommand as Z, HPExpireAtCommand as _, type RequesterConfig as a, PSetEXCommand as a$, HPTtlCommand as a0, HPersistCommand as a1, HGetCommand as a2, HGetAllCommand as a3, HGetDelCommand as a4, HGetExCommand as a5, HIncrByCommand as a6, HIncrByFloatCommand as a7, HKeysCommand as a8, HLenCommand as a9, JsonObjKeysCommand as aA, JsonObjLenCommand as aB, JsonRespCommand as aC, JsonSetCommand as aD, JsonStrAppendCommand as aE, JsonStrLenCommand as aF, JsonToggleCommand as aG, JsonTypeCommand as aH, KeysCommand as aI, LIndexCommand as aJ, LInsertCommand as aK, LLenCommand as aL, LMoveCommand as aM, LPopCommand as aN, LPushCommand as aO, LPushXCommand as aP, LRangeCommand as aQ, LRemCommand as aR, LSetCommand as aS, LTrimCommand as aT, MGetCommand as aU, MSetCommand as aV, MSetNXCommand as aW, PersistCommand as aX, PExpireCommand as aY, PExpireAtCommand as aZ, PingCommand as a_, HMGetCommand as aa, HMSetCommand as ab, HRandFieldCommand as ac, HScanCommand as ad, HSetCommand as ae, HSetExCommand as af, HSetNXCommand as ag, HStrLenCommand as ah, HValsCommand as ai, IncrCommand as aj, IncrByCommand as ak, IncrByFloatCommand as al, JsonArrAppendCommand as am, JsonArrIndexCommand as an, JsonArrInsertCommand as ao, JsonArrLenCommand as ap, JsonArrPopCommand as aq, JsonArrTrimCommand as ar, JsonClearCommand as as, JsonDelCommand as at, JsonForgetCommand as au, JsonGetCommand as av, JsonMergeCommand as aw, JsonMGetCommand as ax, JsonNumIncrByCommand as ay, JsonNumMultByCommand as az, Redis as b, ZRemCommand as b$, PTtlCommand as b0, PublishCommand as b1, RandomKeyCommand as b2, RenameCommand as b3, RenameNXCommand as b4, RPopCommand as b5, RPushCommand as b6, RPushXCommand as b7, SAddCommand as b8, ScanCommand as b9, SUnionStoreCommand as bA, TimeCommand as bB, TouchCommand as bC, TtlCommand as bD, type Type as bE, TypeCommand as bF, UnlinkCommand as bG, XAddCommand as bH, XAckDelCommand as bI, XDelExCommand as bJ, XRangeCommand as bK, type ScoreMember as bL, type ZAddCommandOptions as bM, ZAddCommand as bN, ZCardCommand as bO, ZCountCommand as bP, ZDiffStoreCommand as bQ, ZIncrByCommand as bR, ZInterStoreCommand as bS, type ZInterStoreCommandOptions as bT, ZLexCountCommand as bU, ZMScoreCommand as bV, ZPopMaxCommand as bW, ZPopMinCommand as bX, ZRangeCommand as bY, type ZRangeCommandOptions as bZ, ZRankCommand as b_, type ScanCommandOptions as ba, SCardCommand as bb, ScriptExistsCommand as bc, ScriptFlushCommand as bd, ScriptLoadCommand as be, SDiffCommand as bf, SDiffStoreCommand as bg, SetCommand as bh, type SetCommandOptions as bi, SetBitCommand as bj, SetExCommand as bk, SetNxCommand as bl, SetRangeCommand as bm, SInterCommand as bn, SInterCardCommand as bo, SInterStoreCommand as bp, SIsMemberCommand as bq, SMembersCommand as br, SMIsMemberCommand as bs, SMoveCommand as bt, SPopCommand as bu, SRandMemberCommand as bv, SRemCommand as bw, SScanCommand as bx, StrLenCommand as by, SUnionCommand as bz, type Requester as c, ZRemRangeByLexCommand as c0, ZRemRangeByRankCommand as c1, ZRemRangeByScoreCommand as c2, ZRevRankCommand as c3, ZScanCommand as c4, ZScoreCommand as c5, ZUnionCommand as c6, type ZUnionCommandOptions as c7, ZUnionStoreCommand as c8, type ZUnionStoreCommandOptions as c9, type UpstashResponse as d, error as e, BitOpCommand as f, BitPosCommand as g, type ClientSetInfoAttribute as h, CopyCommand as i, DecrCommand as j, DecrByCommand as k, DelCommand as l, EvalROCommand as m, EvalCommand as n, EvalshaROCommand as o, EvalshaCommand as p, ExistsCommand as q, ExpireCommand as r, type ExpireOption as s, ExpireAtCommand as t, FlushDBCommand as u, type GeoAddCommandOptions as v, type GeoMember as w, GeoDistCommand as x, GeoHashCommand as y, GeoPosCommand as z };
|
|
@@ -1583,6 +1583,15 @@ declare class SInterCommand<TData = string> extends Command<unknown[], TData[]>
|
|
|
1583
1583
|
constructor(cmd: [key: string, ...keys: string[]], opts?: CommandOptions<unknown[], TData[]>);
|
|
1584
1584
|
}
|
|
1585
1585
|
|
|
1586
|
+
/**
|
|
1587
|
+
* @see https://redis.io/commands/sintercard
|
|
1588
|
+
*/
|
|
1589
|
+
declare class SInterCardCommand extends Command<number, number> {
|
|
1590
|
+
constructor(cmd: [keys: string[], opts?: {
|
|
1591
|
+
limit?: number;
|
|
1592
|
+
}], cmdOpts?: CommandOptions<number, number>);
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1586
1595
|
/**
|
|
1587
1596
|
* @see https://redis.io/commands/sinterstore
|
|
1588
1597
|
*/
|
|
@@ -2782,6 +2791,12 @@ declare class Pipeline<TCommands extends Command<any, any>[] = []> {
|
|
|
2782
2791
|
* @see https://redis.io/commands/sinter
|
|
2783
2792
|
*/
|
|
2784
2793
|
sinter: (key: string, ...keys: string[]) => Pipeline<[...TCommands, Command<any, string[]>]>;
|
|
2794
|
+
/**
|
|
2795
|
+
* @see https://redis.io/commands/sintercard
|
|
2796
|
+
*/
|
|
2797
|
+
sintercard: (keys: string[], opts?: {
|
|
2798
|
+
limit?: number;
|
|
2799
|
+
} | undefined) => Pipeline<[...TCommands, Command<any, number>]>;
|
|
2785
2800
|
/**
|
|
2786
2801
|
* @see https://redis.io/commands/sinterstore
|
|
2787
2802
|
*/
|
|
@@ -2977,11 +2992,11 @@ declare class Pipeline<TCommands extends Command<any, any>[] = []> {
|
|
|
2977
2992
|
/**
|
|
2978
2993
|
* @see https://redis.io/commands/xrange
|
|
2979
2994
|
*/
|
|
2980
|
-
xrange: (key: string, start: string, end: string, count?: number | undefined) => Pipeline<[...TCommands, Command<any, Record<string,
|
|
2995
|
+
xrange: <TData extends Record<string, unknown>>(key: string, start: string, end: string, count?: number | undefined) => Pipeline<[...TCommands, Command<any, Record<string, TData>>]>;
|
|
2981
2996
|
/**
|
|
2982
2997
|
* @see https://redis.io/commands/xrevrange
|
|
2983
2998
|
*/
|
|
2984
|
-
xrevrange: (key: string, end: string, start: string, count?: number | undefined) => Pipeline<[...TCommands, Command<any, Record<string,
|
|
2999
|
+
xrevrange: <TData extends Record<string, unknown>>(key: string, end: string, start: string, count?: number | undefined) => Pipeline<[...TCommands, Command<any, Record<string, TData>>]>;
|
|
2985
3000
|
/**
|
|
2986
3001
|
* @see https://redis.io/commands/zcard
|
|
2987
3002
|
*/
|
|
@@ -3239,6 +3254,7 @@ declare class Script<TResult = unknown> {
|
|
|
3239
3254
|
* future major release.
|
|
3240
3255
|
*/
|
|
3241
3256
|
sha1: string;
|
|
3257
|
+
private initPromise;
|
|
3242
3258
|
private readonly redis;
|
|
3243
3259
|
constructor(redis: Redis, script: string);
|
|
3244
3260
|
/**
|
|
@@ -3292,6 +3308,7 @@ declare class ScriptRO<TResult = unknown> {
|
|
|
3292
3308
|
* future major release.
|
|
3293
3309
|
*/
|
|
3294
3310
|
sha1: string;
|
|
3311
|
+
private initPromise;
|
|
3295
3312
|
private readonly redis;
|
|
3296
3313
|
constructor(redis: Redis, script: string);
|
|
3297
3314
|
private init;
|
|
@@ -4197,6 +4214,12 @@ declare class Redis {
|
|
|
4197
4214
|
* @see https://redis.io/commands/sinter
|
|
4198
4215
|
*/
|
|
4199
4216
|
sinter: (key: string, ...keys: string[]) => Promise<string[]>;
|
|
4217
|
+
/**
|
|
4218
|
+
* @see https://redis.io/commands/sintercard
|
|
4219
|
+
*/
|
|
4220
|
+
sintercard: (keys: string[], opts?: {
|
|
4221
|
+
limit?: number;
|
|
4222
|
+
} | undefined) => Promise<number>;
|
|
4200
4223
|
/**
|
|
4201
4224
|
* @see https://redis.io/commands/sinterstore
|
|
4202
4225
|
*/
|
|
@@ -4392,11 +4415,11 @@ declare class Redis {
|
|
|
4392
4415
|
/**
|
|
4393
4416
|
* @see https://redis.io/commands/xrange
|
|
4394
4417
|
*/
|
|
4395
|
-
xrange: (key: string, start: string, end: string, count?: number | undefined) => Promise<Record<string,
|
|
4418
|
+
xrange: <TData extends Record<string, unknown>>(key: string, start: string, end: string, count?: number | undefined) => Promise<Record<string, TData>>;
|
|
4396
4419
|
/**
|
|
4397
4420
|
* @see https://redis.io/commands/xrevrange
|
|
4398
4421
|
*/
|
|
4399
|
-
xrevrange: (key: string, end: string, start: string, count?: number | undefined) => Promise<Record<string,
|
|
4422
|
+
xrevrange: <TData extends Record<string, unknown>>(key: string, end: string, start: string, count?: number | undefined) => Promise<Record<string, TData>>;
|
|
4400
4423
|
/**
|
|
4401
4424
|
* @see https://redis.io/commands/zadd
|
|
4402
4425
|
*/
|
|
@@ -4525,4 +4548,4 @@ declare class ZMScoreCommand<TData> extends Command<string[] | null, number[] |
|
|
|
4525
4548
|
constructor(cmd: [key: string, members: TData[]], opts?: CommandOptions<string[] | null, number[] | null>);
|
|
4526
4549
|
}
|
|
4527
4550
|
|
|
4528
|
-
export { HPExpireTimeCommand as $, AppendCommand as A, BitCountCommand as B, ClientSetInfoCommand as C, DBSizeCommand as D, EchoCommand as E, FlushAllCommand as F, GeoAddCommand as G, type HttpClientConfig as H, GeoSearchCommand as I, GeoSearchStoreCommand as J, GetCommand as K, GetBitCommand as L, GetDelCommand as M, GetExCommand as N, GetRangeCommand as O, Pipeline as P, GetSetCommand as Q, type RedisOptions as R, HDelCommand as S, HExistsCommand as T, type UpstashRequest as U, HExpireCommand as V, HExpireAtCommand as W, HExpireTimeCommand as X, HTtlCommand as Y, HPExpireCommand as Z, HPExpireAtCommand as _, type RequesterConfig as a, PSetEXCommand as a$, HPTtlCommand as a0, HPersistCommand as a1, HGetCommand as a2, HGetAllCommand as a3, HGetDelCommand as a4, HGetExCommand as a5, HIncrByCommand as a6, HIncrByFloatCommand as a7, HKeysCommand as a8, HLenCommand as a9, JsonObjKeysCommand as aA, JsonObjLenCommand as aB, JsonRespCommand as aC, JsonSetCommand as aD, JsonStrAppendCommand as aE, JsonStrLenCommand as aF, JsonToggleCommand as aG, JsonTypeCommand as aH, KeysCommand as aI, LIndexCommand as aJ, LInsertCommand as aK, LLenCommand as aL, LMoveCommand as aM, LPopCommand as aN, LPushCommand as aO, LPushXCommand as aP, LRangeCommand as aQ, LRemCommand as aR, LSetCommand as aS, LTrimCommand as aT, MGetCommand as aU, MSetCommand as aV, MSetNXCommand as aW, PersistCommand as aX, PExpireCommand as aY, PExpireAtCommand as aZ, PingCommand as a_, HMGetCommand as aa, HMSetCommand as ab, HRandFieldCommand as ac, HScanCommand as ad, HSetCommand as ae, HSetExCommand as af, HSetNXCommand as ag, HStrLenCommand as ah, HValsCommand as ai, IncrCommand as aj, IncrByCommand as ak, IncrByFloatCommand as al, JsonArrAppendCommand as am, JsonArrIndexCommand as an, JsonArrInsertCommand as ao, JsonArrLenCommand as ap, JsonArrPopCommand as aq, JsonArrTrimCommand as ar, JsonClearCommand as as, JsonDelCommand as at, JsonForgetCommand as au, JsonGetCommand as av, JsonMergeCommand as aw, JsonMGetCommand as ax, JsonNumIncrByCommand as ay, JsonNumMultByCommand as az, Redis as b,
|
|
4551
|
+
export { HPExpireTimeCommand as $, AppendCommand as A, BitCountCommand as B, ClientSetInfoCommand as C, DBSizeCommand as D, EchoCommand as E, FlushAllCommand as F, GeoAddCommand as G, type HttpClientConfig as H, GeoSearchCommand as I, GeoSearchStoreCommand as J, GetCommand as K, GetBitCommand as L, GetDelCommand as M, GetExCommand as N, GetRangeCommand as O, Pipeline as P, GetSetCommand as Q, type RedisOptions as R, HDelCommand as S, HExistsCommand as T, type UpstashRequest as U, HExpireCommand as V, HExpireAtCommand as W, HExpireTimeCommand as X, HTtlCommand as Y, HPExpireCommand as Z, HPExpireAtCommand as _, type RequesterConfig as a, PSetEXCommand as a$, HPTtlCommand as a0, HPersistCommand as a1, HGetCommand as a2, HGetAllCommand as a3, HGetDelCommand as a4, HGetExCommand as a5, HIncrByCommand as a6, HIncrByFloatCommand as a7, HKeysCommand as a8, HLenCommand as a9, JsonObjKeysCommand as aA, JsonObjLenCommand as aB, JsonRespCommand as aC, JsonSetCommand as aD, JsonStrAppendCommand as aE, JsonStrLenCommand as aF, JsonToggleCommand as aG, JsonTypeCommand as aH, KeysCommand as aI, LIndexCommand as aJ, LInsertCommand as aK, LLenCommand as aL, LMoveCommand as aM, LPopCommand as aN, LPushCommand as aO, LPushXCommand as aP, LRangeCommand as aQ, LRemCommand as aR, LSetCommand as aS, LTrimCommand as aT, MGetCommand as aU, MSetCommand as aV, MSetNXCommand as aW, PersistCommand as aX, PExpireCommand as aY, PExpireAtCommand as aZ, PingCommand as a_, HMGetCommand as aa, HMSetCommand as ab, HRandFieldCommand as ac, HScanCommand as ad, HSetCommand as ae, HSetExCommand as af, HSetNXCommand as ag, HStrLenCommand as ah, HValsCommand as ai, IncrCommand as aj, IncrByCommand as ak, IncrByFloatCommand as al, JsonArrAppendCommand as am, JsonArrIndexCommand as an, JsonArrInsertCommand as ao, JsonArrLenCommand as ap, JsonArrPopCommand as aq, JsonArrTrimCommand as ar, JsonClearCommand as as, JsonDelCommand as at, JsonForgetCommand as au, JsonGetCommand as av, JsonMergeCommand as aw, JsonMGetCommand as ax, JsonNumIncrByCommand as ay, JsonNumMultByCommand as az, Redis as b, ZRemCommand as b$, PTtlCommand as b0, PublishCommand as b1, RandomKeyCommand as b2, RenameCommand as b3, RenameNXCommand as b4, RPopCommand as b5, RPushCommand as b6, RPushXCommand as b7, SAddCommand as b8, ScanCommand as b9, SUnionStoreCommand as bA, TimeCommand as bB, TouchCommand as bC, TtlCommand as bD, type Type as bE, TypeCommand as bF, UnlinkCommand as bG, XAddCommand as bH, XAckDelCommand as bI, XDelExCommand as bJ, XRangeCommand as bK, type ScoreMember as bL, type ZAddCommandOptions as bM, ZAddCommand as bN, ZCardCommand as bO, ZCountCommand as bP, ZDiffStoreCommand as bQ, ZIncrByCommand as bR, ZInterStoreCommand as bS, type ZInterStoreCommandOptions as bT, ZLexCountCommand as bU, ZMScoreCommand as bV, ZPopMaxCommand as bW, ZPopMinCommand as bX, ZRangeCommand as bY, type ZRangeCommandOptions as bZ, ZRankCommand as b_, type ScanCommandOptions as ba, SCardCommand as bb, ScriptExistsCommand as bc, ScriptFlushCommand as bd, ScriptLoadCommand as be, SDiffCommand as bf, SDiffStoreCommand as bg, SetCommand as bh, type SetCommandOptions as bi, SetBitCommand as bj, SetExCommand as bk, SetNxCommand as bl, SetRangeCommand as bm, SInterCommand as bn, SInterCardCommand as bo, SInterStoreCommand as bp, SIsMemberCommand as bq, SMembersCommand as br, SMIsMemberCommand as bs, SMoveCommand as bt, SPopCommand as bu, SRandMemberCommand as bv, SRemCommand as bw, SScanCommand as bx, StrLenCommand as by, SUnionCommand as bz, type Requester as c, ZRemRangeByLexCommand as c0, ZRemRangeByRankCommand as c1, ZRemRangeByScoreCommand as c2, ZRevRankCommand as c3, ZScanCommand as c4, ZScoreCommand as c5, ZUnionCommand as c6, type ZUnionCommandOptions as c7, ZUnionStoreCommand as c8, type ZUnionStoreCommandOptions as c9, type UpstashResponse as d, error as e, BitOpCommand as f, BitPosCommand as g, type ClientSetInfoAttribute as h, CopyCommand as i, DecrCommand as j, DecrByCommand as k, DelCommand as l, EvalROCommand as m, EvalCommand as n, EvalshaROCommand as o, EvalshaCommand as p, ExistsCommand as q, ExpireCommand as r, type ExpireOption as s, ExpireAtCommand as t, FlushDBCommand as u, type GeoAddCommandOptions as v, type GeoMember as w, GeoDistCommand as x, GeoHashCommand as y, GeoPosCommand as z };
|