@upstash/redis 1.35.0-canary → 1.35.1
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/{dist/chunk-Q4ZBDYYE.mjs → chunk-AIBLSL5D.mjs} +782 -89
- package/cloudflare.d.mts +55 -0
- package/cloudflare.d.ts +55 -0
- package/{dist/cloudflare.js → cloudflare.js} +796 -111
- package/{dist/cloudflare.mjs → cloudflare.mjs} +15 -13
- package/fastly.d.mts +48 -0
- package/fastly.d.ts +48 -0
- package/{dist/fastly.js → fastly.js} +792 -107
- package/{dist/fastly.mjs → fastly.mjs} +11 -9
- package/nodejs.d.mts +73 -0
- package/nodejs.d.ts +73 -0
- package/{dist/nodejs.js → nodejs.js} +799 -113
- package/{dist/nodejs.mjs → nodejs.mjs} +18 -15
- package/package.json +1 -1
- package/{dist/zmscore-BhX8yEQc.d.mts → zmscore-BshEAkn7.d.mts} +591 -46
- package/{dist/zmscore-BhX8yEQc.d.ts → zmscore-BshEAkn7.d.ts} +591 -46
- package/dist/cloudflare.d.mts +0 -55
- package/dist/cloudflare.d.ts +0 -55
- package/dist/fastly.d.mts +0 -48
- package/dist/fastly.d.ts +0 -48
- package/dist/nodejs.d.mts +0 -73
- package/dist/nodejs.d.ts +0 -73
package/dist/cloudflare.d.mts
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { R as RedisOptions, a as RequesterConfig, b as Redis$1 } from './zmscore-BhX8yEQc.mjs';
|
|
2
|
-
export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, C as CopyCommand, D as DBSizeCommand, i as DecrByCommand, h as DecrCommand, j as DelCommand, E as EchoCommand, k as EvalCommand, l as EvalshaCommand, m as ExistsCommand, o as ExpireAtCommand, n as ExpireCommand, F as FlushAllCommand, p as FlushDBCommand, G as GeoAddCommand, q as GeoAddCommandOptions, s as GeoDistCommand, t as GeoHashCommand, r as GeoMember, u as GeoPosCommand, v as GeoSearchCommand, w as GeoSearchStoreCommand, y as GetBitCommand, x as GetCommand, z as GetDelCommand, H as GetRangeCommand, I as GetSetCommand, J as HDelCommand, K as HExistsCommand, M as HGetAllCommand, L as HGetCommand, N as HIncrByCommand, O as HIncrByFloatCommand, Q as HKeysCommand, S as HLenCommand, T as HMGetCommand, V as HMSetCommand, W as HRandFieldCommand, X as HScanCommand, Y as HSetCommand, Z as HSetNXCommand, _ as HStrLenCommand, $ as HValsCommand, a1 as IncrByCommand, a2 as IncrByFloatCommand, a0 as IncrCommand, a3 as JsonArrAppendCommand, a4 as JsonArrIndexCommand, a5 as JsonArrInsertCommand, a6 as JsonArrLenCommand, a7 as JsonArrPopCommand, a8 as JsonArrTrimCommand, a9 as JsonClearCommand, aa as JsonDelCommand, ab as JsonForgetCommand, ac as JsonGetCommand, ad as JsonMGetCommand, ae as JsonNumIncrByCommand, af as JsonNumMultByCommand, ag as JsonObjKeysCommand, ah as JsonObjLenCommand, ai as JsonRespCommand, aj as JsonSetCommand, ak as JsonStrAppendCommand, al as JsonStrLenCommand, am as JsonToggleCommand, an as JsonTypeCommand, ao as KeysCommand, ap as LIndexCommand, aq as LInsertCommand, ar as LLenCommand, as as LMoveCommand, at as LPopCommand, au as LPushCommand, av as LPushXCommand, aw as LRangeCommand, ax as LRemCommand, ay as LSetCommand, az as LTrimCommand, aA as MGetCommand, aB as MSetCommand, aC as MSetNXCommand, aF as PExpireAtCommand, aE as PExpireCommand, aH as PSetEXCommand, aI as PTtlCommand, aD as PersistCommand, aG as PingCommand, P as Pipeline, aJ as PublishCommand, aN as RPopCommand, aO as RPushCommand, aP as RPushXCommand, aK as RandomKeyCommand, aL as RenameCommand, aM as RenameNXCommand, d as Requester, aQ as SAddCommand, aT as SCardCommand, aX as SDiffCommand, aY as SDiffStoreCommand, b3 as SInterCommand, b4 as SInterStoreCommand, b5 as SIsMemberCommand, b7 as SMIsMemberCommand, b6 as SMembersCommand, b8 as SMoveCommand, b9 as SPopCommand, ba as SRandMemberCommand, bb as SRemCommand, bc as SScanCommand, be as SUnionCommand, bf as SUnionStoreCommand, aR as ScanCommand, aS as ScanCommandOptions, bo as ScoreMember, aU as ScriptExistsCommand, aV as ScriptFlushCommand, aW as ScriptLoadCommand, a$ as SetBitCommand, aZ as SetCommand, a_ as SetCommandOptions, b0 as SetExCommand, b1 as SetNxCommand, b2 as SetRangeCommand, bd as StrLenCommand, bg as TimeCommand, bh as TouchCommand, bi as TtlCommand, bj as Type, bk as TypeCommand, bl as UnlinkCommand, U as UpstashRequest, c as UpstashResponse, bm as XAddCommand, bn as XRangeCommand, bq as ZAddCommand, bp as ZAddCommandOptions, br as ZCardCommand, bs as ZCountCommand, bt as ZDiffStoreCommand, bu as ZIncrByCommand, bv as ZInterStoreCommand, bw as ZInterStoreCommandOptions, bx as ZLexCountCommand, by as ZMScoreCommand, bz as ZPopMaxCommand, bA as ZPopMinCommand, bB as ZRangeCommand, bC as ZRangeCommandOptions, bD as ZRankCommand, bE as ZRemCommand, bF as ZRemRangeByLexCommand, bG as ZRemRangeByRankCommand, bH as ZRemRangeByScoreCommand, bI as ZRevRankCommand, bJ as ZScanCommand, bK as ZScoreCommand, bL as ZUnionCommand, bM as ZUnionCommandOptions, bN as ZUnionStoreCommand, bO as ZUnionStoreCommandOptions, e as errors } from './zmscore-BhX8yEQc.mjs';
|
|
3
|
-
|
|
4
|
-
type Env = {
|
|
5
|
-
UPSTASH_DISABLE_TELEMETRY?: string;
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Connection credentials for upstash redis.
|
|
10
|
-
* Get them from https://console.upstash.com/redis/<uuid>
|
|
11
|
-
*/
|
|
12
|
-
type RedisConfigCloudflare = {
|
|
13
|
-
/**
|
|
14
|
-
* UPSTASH_REDIS_REST_URL
|
|
15
|
-
*/
|
|
16
|
-
url: string | undefined;
|
|
17
|
-
/**
|
|
18
|
-
* UPSTASH_REDIS_REST_TOKEN
|
|
19
|
-
*/
|
|
20
|
-
token: string | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* The signal will allow aborting requests on the fly.
|
|
23
|
-
* For more check: https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal
|
|
24
|
-
*/
|
|
25
|
-
signal?: AbortSignal;
|
|
26
|
-
keepAlive?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* When this flag is enabled, any subsequent commands issued by this client are guaranteed to observe the effects of all earlier writes submitted by the same client.
|
|
29
|
-
*/
|
|
30
|
-
readYourWrites?: boolean;
|
|
31
|
-
} & RedisOptions & RequesterConfig & Env;
|
|
32
|
-
/**
|
|
33
|
-
* Serverless redis client for upstash.
|
|
34
|
-
*/
|
|
35
|
-
declare class Redis extends Redis$1 {
|
|
36
|
-
/**
|
|
37
|
-
* Create a new redis client
|
|
38
|
-
*
|
|
39
|
-
* @example
|
|
40
|
-
* ```typescript
|
|
41
|
-
* const redis = new Redis({
|
|
42
|
-
* url: "<UPSTASH_REDIS_REST_URL>",
|
|
43
|
-
* token: "<UPSTASH_REDIS_REST_TOKEN>",
|
|
44
|
-
* });
|
|
45
|
-
* ```
|
|
46
|
-
*/
|
|
47
|
-
constructor(config: RedisConfigCloudflare, env?: Env);
|
|
48
|
-
static fromEnv(env?: {
|
|
49
|
-
UPSTASH_REDIS_REST_URL: string;
|
|
50
|
-
UPSTASH_REDIS_REST_TOKEN: string;
|
|
51
|
-
UPSTASH_DISABLE_TELEMETRY?: string;
|
|
52
|
-
}, opts?: Omit<RedisConfigCloudflare, "url" | "token">): Redis;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export { Redis, type RedisConfigCloudflare };
|
package/dist/cloudflare.d.ts
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { R as RedisOptions, a as RequesterConfig, b as Redis$1 } from './zmscore-BhX8yEQc.js';
|
|
2
|
-
export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, C as CopyCommand, D as DBSizeCommand, i as DecrByCommand, h as DecrCommand, j as DelCommand, E as EchoCommand, k as EvalCommand, l as EvalshaCommand, m as ExistsCommand, o as ExpireAtCommand, n as ExpireCommand, F as FlushAllCommand, p as FlushDBCommand, G as GeoAddCommand, q as GeoAddCommandOptions, s as GeoDistCommand, t as GeoHashCommand, r as GeoMember, u as GeoPosCommand, v as GeoSearchCommand, w as GeoSearchStoreCommand, y as GetBitCommand, x as GetCommand, z as GetDelCommand, H as GetRangeCommand, I as GetSetCommand, J as HDelCommand, K as HExistsCommand, M as HGetAllCommand, L as HGetCommand, N as HIncrByCommand, O as HIncrByFloatCommand, Q as HKeysCommand, S as HLenCommand, T as HMGetCommand, V as HMSetCommand, W as HRandFieldCommand, X as HScanCommand, Y as HSetCommand, Z as HSetNXCommand, _ as HStrLenCommand, $ as HValsCommand, a1 as IncrByCommand, a2 as IncrByFloatCommand, a0 as IncrCommand, a3 as JsonArrAppendCommand, a4 as JsonArrIndexCommand, a5 as JsonArrInsertCommand, a6 as JsonArrLenCommand, a7 as JsonArrPopCommand, a8 as JsonArrTrimCommand, a9 as JsonClearCommand, aa as JsonDelCommand, ab as JsonForgetCommand, ac as JsonGetCommand, ad as JsonMGetCommand, ae as JsonNumIncrByCommand, af as JsonNumMultByCommand, ag as JsonObjKeysCommand, ah as JsonObjLenCommand, ai as JsonRespCommand, aj as JsonSetCommand, ak as JsonStrAppendCommand, al as JsonStrLenCommand, am as JsonToggleCommand, an as JsonTypeCommand, ao as KeysCommand, ap as LIndexCommand, aq as LInsertCommand, ar as LLenCommand, as as LMoveCommand, at as LPopCommand, au as LPushCommand, av as LPushXCommand, aw as LRangeCommand, ax as LRemCommand, ay as LSetCommand, az as LTrimCommand, aA as MGetCommand, aB as MSetCommand, aC as MSetNXCommand, aF as PExpireAtCommand, aE as PExpireCommand, aH as PSetEXCommand, aI as PTtlCommand, aD as PersistCommand, aG as PingCommand, P as Pipeline, aJ as PublishCommand, aN as RPopCommand, aO as RPushCommand, aP as RPushXCommand, aK as RandomKeyCommand, aL as RenameCommand, aM as RenameNXCommand, d as Requester, aQ as SAddCommand, aT as SCardCommand, aX as SDiffCommand, aY as SDiffStoreCommand, b3 as SInterCommand, b4 as SInterStoreCommand, b5 as SIsMemberCommand, b7 as SMIsMemberCommand, b6 as SMembersCommand, b8 as SMoveCommand, b9 as SPopCommand, ba as SRandMemberCommand, bb as SRemCommand, bc as SScanCommand, be as SUnionCommand, bf as SUnionStoreCommand, aR as ScanCommand, aS as ScanCommandOptions, bo as ScoreMember, aU as ScriptExistsCommand, aV as ScriptFlushCommand, aW as ScriptLoadCommand, a$ as SetBitCommand, aZ as SetCommand, a_ as SetCommandOptions, b0 as SetExCommand, b1 as SetNxCommand, b2 as SetRangeCommand, bd as StrLenCommand, bg as TimeCommand, bh as TouchCommand, bi as TtlCommand, bj as Type, bk as TypeCommand, bl as UnlinkCommand, U as UpstashRequest, c as UpstashResponse, bm as XAddCommand, bn as XRangeCommand, bq as ZAddCommand, bp as ZAddCommandOptions, br as ZCardCommand, bs as ZCountCommand, bt as ZDiffStoreCommand, bu as ZIncrByCommand, bv as ZInterStoreCommand, bw as ZInterStoreCommandOptions, bx as ZLexCountCommand, by as ZMScoreCommand, bz as ZPopMaxCommand, bA as ZPopMinCommand, bB as ZRangeCommand, bC as ZRangeCommandOptions, bD as ZRankCommand, bE as ZRemCommand, bF as ZRemRangeByLexCommand, bG as ZRemRangeByRankCommand, bH as ZRemRangeByScoreCommand, bI as ZRevRankCommand, bJ as ZScanCommand, bK as ZScoreCommand, bL as ZUnionCommand, bM as ZUnionCommandOptions, bN as ZUnionStoreCommand, bO as ZUnionStoreCommandOptions, e as errors } from './zmscore-BhX8yEQc.js';
|
|
3
|
-
|
|
4
|
-
type Env = {
|
|
5
|
-
UPSTASH_DISABLE_TELEMETRY?: string;
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Connection credentials for upstash redis.
|
|
10
|
-
* Get them from https://console.upstash.com/redis/<uuid>
|
|
11
|
-
*/
|
|
12
|
-
type RedisConfigCloudflare = {
|
|
13
|
-
/**
|
|
14
|
-
* UPSTASH_REDIS_REST_URL
|
|
15
|
-
*/
|
|
16
|
-
url: string | undefined;
|
|
17
|
-
/**
|
|
18
|
-
* UPSTASH_REDIS_REST_TOKEN
|
|
19
|
-
*/
|
|
20
|
-
token: string | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* The signal will allow aborting requests on the fly.
|
|
23
|
-
* For more check: https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal
|
|
24
|
-
*/
|
|
25
|
-
signal?: AbortSignal;
|
|
26
|
-
keepAlive?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* When this flag is enabled, any subsequent commands issued by this client are guaranteed to observe the effects of all earlier writes submitted by the same client.
|
|
29
|
-
*/
|
|
30
|
-
readYourWrites?: boolean;
|
|
31
|
-
} & RedisOptions & RequesterConfig & Env;
|
|
32
|
-
/**
|
|
33
|
-
* Serverless redis client for upstash.
|
|
34
|
-
*/
|
|
35
|
-
declare class Redis extends Redis$1 {
|
|
36
|
-
/**
|
|
37
|
-
* Create a new redis client
|
|
38
|
-
*
|
|
39
|
-
* @example
|
|
40
|
-
* ```typescript
|
|
41
|
-
* const redis = new Redis({
|
|
42
|
-
* url: "<UPSTASH_REDIS_REST_URL>",
|
|
43
|
-
* token: "<UPSTASH_REDIS_REST_TOKEN>",
|
|
44
|
-
* });
|
|
45
|
-
* ```
|
|
46
|
-
*/
|
|
47
|
-
constructor(config: RedisConfigCloudflare, env?: Env);
|
|
48
|
-
static fromEnv(env?: {
|
|
49
|
-
UPSTASH_REDIS_REST_URL: string;
|
|
50
|
-
UPSTASH_REDIS_REST_TOKEN: string;
|
|
51
|
-
UPSTASH_DISABLE_TELEMETRY?: string;
|
|
52
|
-
}, opts?: Omit<RedisConfigCloudflare, "url" | "token">): Redis;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export { Redis, type RedisConfigCloudflare };
|
package/dist/fastly.d.mts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { R as RedisOptions, a as RequesterConfig, b as Redis$1 } from './zmscore-BhX8yEQc.mjs';
|
|
2
|
-
export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, C as CopyCommand, D as DBSizeCommand, i as DecrByCommand, h as DecrCommand, j as DelCommand, E as EchoCommand, k as EvalCommand, l as EvalshaCommand, m as ExistsCommand, o as ExpireAtCommand, n as ExpireCommand, F as FlushAllCommand, p as FlushDBCommand, G as GeoAddCommand, q as GeoAddCommandOptions, s as GeoDistCommand, t as GeoHashCommand, r as GeoMember, u as GeoPosCommand, v as GeoSearchCommand, w as GeoSearchStoreCommand, y as GetBitCommand, x as GetCommand, z as GetDelCommand, H as GetRangeCommand, I as GetSetCommand, J as HDelCommand, K as HExistsCommand, M as HGetAllCommand, L as HGetCommand, N as HIncrByCommand, O as HIncrByFloatCommand, Q as HKeysCommand, S as HLenCommand, T as HMGetCommand, V as HMSetCommand, W as HRandFieldCommand, X as HScanCommand, Y as HSetCommand, Z as HSetNXCommand, _ as HStrLenCommand, $ as HValsCommand, a1 as IncrByCommand, a2 as IncrByFloatCommand, a0 as IncrCommand, a3 as JsonArrAppendCommand, a4 as JsonArrIndexCommand, a5 as JsonArrInsertCommand, a6 as JsonArrLenCommand, a7 as JsonArrPopCommand, a8 as JsonArrTrimCommand, a9 as JsonClearCommand, aa as JsonDelCommand, ab as JsonForgetCommand, ac as JsonGetCommand, ad as JsonMGetCommand, ae as JsonNumIncrByCommand, af as JsonNumMultByCommand, ag as JsonObjKeysCommand, ah as JsonObjLenCommand, ai as JsonRespCommand, aj as JsonSetCommand, ak as JsonStrAppendCommand, al as JsonStrLenCommand, am as JsonToggleCommand, an as JsonTypeCommand, ao as KeysCommand, ap as LIndexCommand, aq as LInsertCommand, ar as LLenCommand, as as LMoveCommand, at as LPopCommand, au as LPushCommand, av as LPushXCommand, aw as LRangeCommand, ax as LRemCommand, ay as LSetCommand, az as LTrimCommand, aA as MGetCommand, aB as MSetCommand, aC as MSetNXCommand, aF as PExpireAtCommand, aE as PExpireCommand, aH as PSetEXCommand, aI as PTtlCommand, aD as PersistCommand, aG as PingCommand, P as Pipeline, aJ as PublishCommand, aN as RPopCommand, aO as RPushCommand, aP as RPushXCommand, aK as RandomKeyCommand, aL as RenameCommand, aM as RenameNXCommand, d as Requester, aQ as SAddCommand, aT as SCardCommand, aX as SDiffCommand, aY as SDiffStoreCommand, b3 as SInterCommand, b4 as SInterStoreCommand, b5 as SIsMemberCommand, b7 as SMIsMemberCommand, b6 as SMembersCommand, b8 as SMoveCommand, b9 as SPopCommand, ba as SRandMemberCommand, bb as SRemCommand, bc as SScanCommand, be as SUnionCommand, bf as SUnionStoreCommand, aR as ScanCommand, aS as ScanCommandOptions, bo as ScoreMember, aU as ScriptExistsCommand, aV as ScriptFlushCommand, aW as ScriptLoadCommand, a$ as SetBitCommand, aZ as SetCommand, a_ as SetCommandOptions, b0 as SetExCommand, b1 as SetNxCommand, b2 as SetRangeCommand, bd as StrLenCommand, bg as TimeCommand, bh as TouchCommand, bi as TtlCommand, bj as Type, bk as TypeCommand, bl as UnlinkCommand, U as UpstashRequest, c as UpstashResponse, bm as XAddCommand, bn as XRangeCommand, bq as ZAddCommand, bp as ZAddCommandOptions, br as ZCardCommand, bs as ZCountCommand, bt as ZDiffStoreCommand, bu as ZIncrByCommand, bv as ZInterStoreCommand, bw as ZInterStoreCommandOptions, bx as ZLexCountCommand, by as ZMScoreCommand, bz as ZPopMaxCommand, bA as ZPopMinCommand, bB as ZRangeCommand, bC as ZRangeCommandOptions, bD as ZRankCommand, bE as ZRemCommand, bF as ZRemRangeByLexCommand, bG as ZRemRangeByRankCommand, bH as ZRemRangeByScoreCommand, bI as ZRevRankCommand, bJ as ZScanCommand, bK as ZScoreCommand, bL as ZUnionCommand, bM as ZUnionCommandOptions, bN as ZUnionStoreCommand, bO as ZUnionStoreCommandOptions, e as errors } from './zmscore-BhX8yEQc.mjs';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Connection credentials for upstash redis.
|
|
6
|
-
* Get them from https://console.upstash.com/redis/<uuid>
|
|
7
|
-
*/
|
|
8
|
-
type RedisConfigFastly = {
|
|
9
|
-
/**
|
|
10
|
-
* UPSTASH_REDIS_REST_URL
|
|
11
|
-
*/
|
|
12
|
-
url: string | undefined;
|
|
13
|
-
/**
|
|
14
|
-
* UPSTASH_REDIS_REST_TOKEN
|
|
15
|
-
*/
|
|
16
|
-
token: string | undefined;
|
|
17
|
-
/**
|
|
18
|
-
* A Request can be forwarded to any backend defined on your service. Backends
|
|
19
|
-
* can be created via the Fastly CLI, API, or web interface, and are
|
|
20
|
-
* referenced by name.
|
|
21
|
-
*/
|
|
22
|
-
backend: string;
|
|
23
|
-
keepAlive?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* When this flag is enabled, any subsequent commands issued by this client are guaranteed to observe the effects of all earlier writes submitted by the same client.
|
|
26
|
-
*/
|
|
27
|
-
readYourWrites?: boolean;
|
|
28
|
-
} & RedisOptions & RequesterConfig;
|
|
29
|
-
/**
|
|
30
|
-
* Serverless redis client for upstash.
|
|
31
|
-
*/
|
|
32
|
-
declare class Redis extends Redis$1 {
|
|
33
|
-
/**
|
|
34
|
-
* Create a new redis client
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```typescript
|
|
38
|
-
* const redis = new Redis({
|
|
39
|
-
* url: "<UPSTASH_REDIS_REST_URL>",
|
|
40
|
-
* token: "<UPSTASH_REDIS_REST_TOKEN>",
|
|
41
|
-
* backend: "upstash-db",
|
|
42
|
-
* });
|
|
43
|
-
* ```
|
|
44
|
-
*/
|
|
45
|
-
constructor(config: RedisConfigFastly);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export { Redis, type RedisConfigFastly };
|
package/dist/fastly.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { R as RedisOptions, a as RequesterConfig, b as Redis$1 } from './zmscore-BhX8yEQc.js';
|
|
2
|
-
export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, C as CopyCommand, D as DBSizeCommand, i as DecrByCommand, h as DecrCommand, j as DelCommand, E as EchoCommand, k as EvalCommand, l as EvalshaCommand, m as ExistsCommand, o as ExpireAtCommand, n as ExpireCommand, F as FlushAllCommand, p as FlushDBCommand, G as GeoAddCommand, q as GeoAddCommandOptions, s as GeoDistCommand, t as GeoHashCommand, r as GeoMember, u as GeoPosCommand, v as GeoSearchCommand, w as GeoSearchStoreCommand, y as GetBitCommand, x as GetCommand, z as GetDelCommand, H as GetRangeCommand, I as GetSetCommand, J as HDelCommand, K as HExistsCommand, M as HGetAllCommand, L as HGetCommand, N as HIncrByCommand, O as HIncrByFloatCommand, Q as HKeysCommand, S as HLenCommand, T as HMGetCommand, V as HMSetCommand, W as HRandFieldCommand, X as HScanCommand, Y as HSetCommand, Z as HSetNXCommand, _ as HStrLenCommand, $ as HValsCommand, a1 as IncrByCommand, a2 as IncrByFloatCommand, a0 as IncrCommand, a3 as JsonArrAppendCommand, a4 as JsonArrIndexCommand, a5 as JsonArrInsertCommand, a6 as JsonArrLenCommand, a7 as JsonArrPopCommand, a8 as JsonArrTrimCommand, a9 as JsonClearCommand, aa as JsonDelCommand, ab as JsonForgetCommand, ac as JsonGetCommand, ad as JsonMGetCommand, ae as JsonNumIncrByCommand, af as JsonNumMultByCommand, ag as JsonObjKeysCommand, ah as JsonObjLenCommand, ai as JsonRespCommand, aj as JsonSetCommand, ak as JsonStrAppendCommand, al as JsonStrLenCommand, am as JsonToggleCommand, an as JsonTypeCommand, ao as KeysCommand, ap as LIndexCommand, aq as LInsertCommand, ar as LLenCommand, as as LMoveCommand, at as LPopCommand, au as LPushCommand, av as LPushXCommand, aw as LRangeCommand, ax as LRemCommand, ay as LSetCommand, az as LTrimCommand, aA as MGetCommand, aB as MSetCommand, aC as MSetNXCommand, aF as PExpireAtCommand, aE as PExpireCommand, aH as PSetEXCommand, aI as PTtlCommand, aD as PersistCommand, aG as PingCommand, P as Pipeline, aJ as PublishCommand, aN as RPopCommand, aO as RPushCommand, aP as RPushXCommand, aK as RandomKeyCommand, aL as RenameCommand, aM as RenameNXCommand, d as Requester, aQ as SAddCommand, aT as SCardCommand, aX as SDiffCommand, aY as SDiffStoreCommand, b3 as SInterCommand, b4 as SInterStoreCommand, b5 as SIsMemberCommand, b7 as SMIsMemberCommand, b6 as SMembersCommand, b8 as SMoveCommand, b9 as SPopCommand, ba as SRandMemberCommand, bb as SRemCommand, bc as SScanCommand, be as SUnionCommand, bf as SUnionStoreCommand, aR as ScanCommand, aS as ScanCommandOptions, bo as ScoreMember, aU as ScriptExistsCommand, aV as ScriptFlushCommand, aW as ScriptLoadCommand, a$ as SetBitCommand, aZ as SetCommand, a_ as SetCommandOptions, b0 as SetExCommand, b1 as SetNxCommand, b2 as SetRangeCommand, bd as StrLenCommand, bg as TimeCommand, bh as TouchCommand, bi as TtlCommand, bj as Type, bk as TypeCommand, bl as UnlinkCommand, U as UpstashRequest, c as UpstashResponse, bm as XAddCommand, bn as XRangeCommand, bq as ZAddCommand, bp as ZAddCommandOptions, br as ZCardCommand, bs as ZCountCommand, bt as ZDiffStoreCommand, bu as ZIncrByCommand, bv as ZInterStoreCommand, bw as ZInterStoreCommandOptions, bx as ZLexCountCommand, by as ZMScoreCommand, bz as ZPopMaxCommand, bA as ZPopMinCommand, bB as ZRangeCommand, bC as ZRangeCommandOptions, bD as ZRankCommand, bE as ZRemCommand, bF as ZRemRangeByLexCommand, bG as ZRemRangeByRankCommand, bH as ZRemRangeByScoreCommand, bI as ZRevRankCommand, bJ as ZScanCommand, bK as ZScoreCommand, bL as ZUnionCommand, bM as ZUnionCommandOptions, bN as ZUnionStoreCommand, bO as ZUnionStoreCommandOptions, e as errors } from './zmscore-BhX8yEQc.js';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Connection credentials for upstash redis.
|
|
6
|
-
* Get them from https://console.upstash.com/redis/<uuid>
|
|
7
|
-
*/
|
|
8
|
-
type RedisConfigFastly = {
|
|
9
|
-
/**
|
|
10
|
-
* UPSTASH_REDIS_REST_URL
|
|
11
|
-
*/
|
|
12
|
-
url: string | undefined;
|
|
13
|
-
/**
|
|
14
|
-
* UPSTASH_REDIS_REST_TOKEN
|
|
15
|
-
*/
|
|
16
|
-
token: string | undefined;
|
|
17
|
-
/**
|
|
18
|
-
* A Request can be forwarded to any backend defined on your service. Backends
|
|
19
|
-
* can be created via the Fastly CLI, API, or web interface, and are
|
|
20
|
-
* referenced by name.
|
|
21
|
-
*/
|
|
22
|
-
backend: string;
|
|
23
|
-
keepAlive?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* When this flag is enabled, any subsequent commands issued by this client are guaranteed to observe the effects of all earlier writes submitted by the same client.
|
|
26
|
-
*/
|
|
27
|
-
readYourWrites?: boolean;
|
|
28
|
-
} & RedisOptions & RequesterConfig;
|
|
29
|
-
/**
|
|
30
|
-
* Serverless redis client for upstash.
|
|
31
|
-
*/
|
|
32
|
-
declare class Redis extends Redis$1 {
|
|
33
|
-
/**
|
|
34
|
-
* Create a new redis client
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```typescript
|
|
38
|
-
* const redis = new Redis({
|
|
39
|
-
* url: "<UPSTASH_REDIS_REST_URL>",
|
|
40
|
-
* token: "<UPSTASH_REDIS_REST_TOKEN>",
|
|
41
|
-
* backend: "upstash-db",
|
|
42
|
-
* });
|
|
43
|
-
* ```
|
|
44
|
-
*/
|
|
45
|
-
constructor(config: RedisConfigFastly);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export { Redis, type RedisConfigFastly };
|
package/dist/nodejs.d.mts
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { R as RedisOptions, a as RequesterConfig, b as Redis$1 } from './zmscore-BhX8yEQc.mjs';
|
|
2
|
-
export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, C as CopyCommand, D as DBSizeCommand, i as DecrByCommand, h as DecrCommand, j as DelCommand, E as EchoCommand, k as EvalCommand, l as EvalshaCommand, m as ExistsCommand, o as ExpireAtCommand, n as ExpireCommand, F as FlushAllCommand, p as FlushDBCommand, G as GeoAddCommand, q as GeoAddCommandOptions, s as GeoDistCommand, t as GeoHashCommand, r as GeoMember, u as GeoPosCommand, v as GeoSearchCommand, w as GeoSearchStoreCommand, y as GetBitCommand, x as GetCommand, z as GetDelCommand, H as GetRangeCommand, I as GetSetCommand, J as HDelCommand, K as HExistsCommand, M as HGetAllCommand, L as HGetCommand, N as HIncrByCommand, O as HIncrByFloatCommand, Q as HKeysCommand, S as HLenCommand, T as HMGetCommand, V as HMSetCommand, W as HRandFieldCommand, X as HScanCommand, Y as HSetCommand, Z as HSetNXCommand, _ as HStrLenCommand, $ as HValsCommand, a1 as IncrByCommand, a2 as IncrByFloatCommand, a0 as IncrCommand, a3 as JsonArrAppendCommand, a4 as JsonArrIndexCommand, a5 as JsonArrInsertCommand, a6 as JsonArrLenCommand, a7 as JsonArrPopCommand, a8 as JsonArrTrimCommand, a9 as JsonClearCommand, aa as JsonDelCommand, ab as JsonForgetCommand, ac as JsonGetCommand, ad as JsonMGetCommand, ae as JsonNumIncrByCommand, af as JsonNumMultByCommand, ag as JsonObjKeysCommand, ah as JsonObjLenCommand, ai as JsonRespCommand, aj as JsonSetCommand, ak as JsonStrAppendCommand, al as JsonStrLenCommand, am as JsonToggleCommand, an as JsonTypeCommand, ao as KeysCommand, ap as LIndexCommand, aq as LInsertCommand, ar as LLenCommand, as as LMoveCommand, at as LPopCommand, au as LPushCommand, av as LPushXCommand, aw as LRangeCommand, ax as LRemCommand, ay as LSetCommand, az as LTrimCommand, aA as MGetCommand, aB as MSetCommand, aC as MSetNXCommand, aF as PExpireAtCommand, aE as PExpireCommand, aH as PSetEXCommand, aI as PTtlCommand, aD as PersistCommand, aG as PingCommand, P as Pipeline, aJ as PublishCommand, aN as RPopCommand, aO as RPushCommand, aP as RPushXCommand, aK as RandomKeyCommand, aL as RenameCommand, aM as RenameNXCommand, d as Requester, aQ as SAddCommand, aT as SCardCommand, aX as SDiffCommand, aY as SDiffStoreCommand, b3 as SInterCommand, b4 as SInterStoreCommand, b5 as SIsMemberCommand, b7 as SMIsMemberCommand, b6 as SMembersCommand, b8 as SMoveCommand, b9 as SPopCommand, ba as SRandMemberCommand, bb as SRemCommand, bc as SScanCommand, be as SUnionCommand, bf as SUnionStoreCommand, aR as ScanCommand, aS as ScanCommandOptions, bo as ScoreMember, aU as ScriptExistsCommand, aV as ScriptFlushCommand, aW as ScriptLoadCommand, a$ as SetBitCommand, aZ as SetCommand, a_ as SetCommandOptions, b0 as SetExCommand, b1 as SetNxCommand, b2 as SetRangeCommand, bd as StrLenCommand, bg as TimeCommand, bh as TouchCommand, bi as TtlCommand, bj as Type, bk as TypeCommand, bl as UnlinkCommand, U as UpstashRequest, c as UpstashResponse, bm as XAddCommand, bn as XRangeCommand, bq as ZAddCommand, bp as ZAddCommandOptions, br as ZCardCommand, bs as ZCountCommand, bt as ZDiffStoreCommand, bu as ZIncrByCommand, bv as ZInterStoreCommand, bw as ZInterStoreCommandOptions, bx as ZLexCountCommand, by as ZMScoreCommand, bz as ZPopMaxCommand, bA as ZPopMinCommand, bB as ZRangeCommand, bC as ZRangeCommandOptions, bD as ZRankCommand, bE as ZRemCommand, bF as ZRemRangeByLexCommand, bG as ZRemRangeByRankCommand, bH as ZRemRangeByScoreCommand, bI as ZRevRankCommand, bJ as ZScanCommand, bK as ZScoreCommand, bL as ZUnionCommand, bM as ZUnionCommandOptions, bN as ZUnionStoreCommand, bO as ZUnionStoreCommandOptions, e as errors } from './zmscore-BhX8yEQc.mjs';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Connection credentials for upstash redis.
|
|
6
|
-
* Get them from https://console.upstash.com/redis/<uuid>
|
|
7
|
-
*/
|
|
8
|
-
type RedisConfigNodejs = {
|
|
9
|
-
/**
|
|
10
|
-
* UPSTASH_REDIS_REST_URL
|
|
11
|
-
*/
|
|
12
|
-
url: string | undefined;
|
|
13
|
-
/**
|
|
14
|
-
* UPSTASH_REDIS_REST_TOKEN
|
|
15
|
-
*/
|
|
16
|
-
token: string | undefined;
|
|
17
|
-
/**
|
|
18
|
-
* An agent allows you to reuse connections to reduce latency for multiple sequential requests.
|
|
19
|
-
*
|
|
20
|
-
* This is a node specific implementation and is not supported in various runtimes like Vercel
|
|
21
|
-
* edge functions.
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```ts
|
|
25
|
-
* import https from "https"
|
|
26
|
-
*
|
|
27
|
-
* const options: RedisConfigNodejs = {
|
|
28
|
-
* agent: new https.Agent({ keepAlive: true })
|
|
29
|
-
* }
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
/**
|
|
33
|
-
* The signal will allow aborting requests on the fly.
|
|
34
|
-
* For more check: https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal
|
|
35
|
-
*/
|
|
36
|
-
signal?: AbortSignal;
|
|
37
|
-
latencyLogging?: boolean;
|
|
38
|
-
agent?: unknown;
|
|
39
|
-
keepAlive?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* When this flag is enabled, any subsequent commands issued by this client are guaranteed to observe the effects of all earlier writes submitted by the same client.
|
|
42
|
-
*/
|
|
43
|
-
readYourWrites?: boolean;
|
|
44
|
-
} & RedisOptions & RequesterConfig;
|
|
45
|
-
/**
|
|
46
|
-
* Serverless redis client for upstash.
|
|
47
|
-
*/
|
|
48
|
-
declare class Redis extends Redis$1 {
|
|
49
|
-
/**
|
|
50
|
-
* Create a new redis client by providing the url and token
|
|
51
|
-
*
|
|
52
|
-
* @example
|
|
53
|
-
* ```typescript
|
|
54
|
-
* const redis = new Redis({
|
|
55
|
-
* url: "<UPSTASH_REDIS_REST_URL>",
|
|
56
|
-
* token: "<UPSTASH_REDIS_REST_TOKEN>",
|
|
57
|
-
* });
|
|
58
|
-
* ```
|
|
59
|
-
*/
|
|
60
|
-
constructor(config: RedisConfigNodejs);
|
|
61
|
-
/**
|
|
62
|
-
* Create a new Upstash Redis instance from environment variables.
|
|
63
|
-
*
|
|
64
|
-
* Use this to automatically load connection secrets from your environment
|
|
65
|
-
* variables. For instance when using the Vercel integration.
|
|
66
|
-
*
|
|
67
|
-
* This tries to load `UPSTASH_REDIS_REST_URL` and `UPSTASH_REDIS_REST_TOKEN` from
|
|
68
|
-
* your environment using `process.env`.
|
|
69
|
-
*/
|
|
70
|
-
static fromEnv(config?: Omit<RedisConfigNodejs, "url" | "token">): Redis;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export { Redis, type RedisConfigNodejs };
|
package/dist/nodejs.d.ts
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { R as RedisOptions, a as RequesterConfig, b as Redis$1 } from './zmscore-BhX8yEQc.js';
|
|
2
|
-
export { A as AppendCommand, B as BitCountCommand, f as BitOpCommand, g as BitPosCommand, C as CopyCommand, D as DBSizeCommand, i as DecrByCommand, h as DecrCommand, j as DelCommand, E as EchoCommand, k as EvalCommand, l as EvalshaCommand, m as ExistsCommand, o as ExpireAtCommand, n as ExpireCommand, F as FlushAllCommand, p as FlushDBCommand, G as GeoAddCommand, q as GeoAddCommandOptions, s as GeoDistCommand, t as GeoHashCommand, r as GeoMember, u as GeoPosCommand, v as GeoSearchCommand, w as GeoSearchStoreCommand, y as GetBitCommand, x as GetCommand, z as GetDelCommand, H as GetRangeCommand, I as GetSetCommand, J as HDelCommand, K as HExistsCommand, M as HGetAllCommand, L as HGetCommand, N as HIncrByCommand, O as HIncrByFloatCommand, Q as HKeysCommand, S as HLenCommand, T as HMGetCommand, V as HMSetCommand, W as HRandFieldCommand, X as HScanCommand, Y as HSetCommand, Z as HSetNXCommand, _ as HStrLenCommand, $ as HValsCommand, a1 as IncrByCommand, a2 as IncrByFloatCommand, a0 as IncrCommand, a3 as JsonArrAppendCommand, a4 as JsonArrIndexCommand, a5 as JsonArrInsertCommand, a6 as JsonArrLenCommand, a7 as JsonArrPopCommand, a8 as JsonArrTrimCommand, a9 as JsonClearCommand, aa as JsonDelCommand, ab as JsonForgetCommand, ac as JsonGetCommand, ad as JsonMGetCommand, ae as JsonNumIncrByCommand, af as JsonNumMultByCommand, ag as JsonObjKeysCommand, ah as JsonObjLenCommand, ai as JsonRespCommand, aj as JsonSetCommand, ak as JsonStrAppendCommand, al as JsonStrLenCommand, am as JsonToggleCommand, an as JsonTypeCommand, ao as KeysCommand, ap as LIndexCommand, aq as LInsertCommand, ar as LLenCommand, as as LMoveCommand, at as LPopCommand, au as LPushCommand, av as LPushXCommand, aw as LRangeCommand, ax as LRemCommand, ay as LSetCommand, az as LTrimCommand, aA as MGetCommand, aB as MSetCommand, aC as MSetNXCommand, aF as PExpireAtCommand, aE as PExpireCommand, aH as PSetEXCommand, aI as PTtlCommand, aD as PersistCommand, aG as PingCommand, P as Pipeline, aJ as PublishCommand, aN as RPopCommand, aO as RPushCommand, aP as RPushXCommand, aK as RandomKeyCommand, aL as RenameCommand, aM as RenameNXCommand, d as Requester, aQ as SAddCommand, aT as SCardCommand, aX as SDiffCommand, aY as SDiffStoreCommand, b3 as SInterCommand, b4 as SInterStoreCommand, b5 as SIsMemberCommand, b7 as SMIsMemberCommand, b6 as SMembersCommand, b8 as SMoveCommand, b9 as SPopCommand, ba as SRandMemberCommand, bb as SRemCommand, bc as SScanCommand, be as SUnionCommand, bf as SUnionStoreCommand, aR as ScanCommand, aS as ScanCommandOptions, bo as ScoreMember, aU as ScriptExistsCommand, aV as ScriptFlushCommand, aW as ScriptLoadCommand, a$ as SetBitCommand, aZ as SetCommand, a_ as SetCommandOptions, b0 as SetExCommand, b1 as SetNxCommand, b2 as SetRangeCommand, bd as StrLenCommand, bg as TimeCommand, bh as TouchCommand, bi as TtlCommand, bj as Type, bk as TypeCommand, bl as UnlinkCommand, U as UpstashRequest, c as UpstashResponse, bm as XAddCommand, bn as XRangeCommand, bq as ZAddCommand, bp as ZAddCommandOptions, br as ZCardCommand, bs as ZCountCommand, bt as ZDiffStoreCommand, bu as ZIncrByCommand, bv as ZInterStoreCommand, bw as ZInterStoreCommandOptions, bx as ZLexCountCommand, by as ZMScoreCommand, bz as ZPopMaxCommand, bA as ZPopMinCommand, bB as ZRangeCommand, bC as ZRangeCommandOptions, bD as ZRankCommand, bE as ZRemCommand, bF as ZRemRangeByLexCommand, bG as ZRemRangeByRankCommand, bH as ZRemRangeByScoreCommand, bI as ZRevRankCommand, bJ as ZScanCommand, bK as ZScoreCommand, bL as ZUnionCommand, bM as ZUnionCommandOptions, bN as ZUnionStoreCommand, bO as ZUnionStoreCommandOptions, e as errors } from './zmscore-BhX8yEQc.js';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Connection credentials for upstash redis.
|
|
6
|
-
* Get them from https://console.upstash.com/redis/<uuid>
|
|
7
|
-
*/
|
|
8
|
-
type RedisConfigNodejs = {
|
|
9
|
-
/**
|
|
10
|
-
* UPSTASH_REDIS_REST_URL
|
|
11
|
-
*/
|
|
12
|
-
url: string | undefined;
|
|
13
|
-
/**
|
|
14
|
-
* UPSTASH_REDIS_REST_TOKEN
|
|
15
|
-
*/
|
|
16
|
-
token: string | undefined;
|
|
17
|
-
/**
|
|
18
|
-
* An agent allows you to reuse connections to reduce latency for multiple sequential requests.
|
|
19
|
-
*
|
|
20
|
-
* This is a node specific implementation and is not supported in various runtimes like Vercel
|
|
21
|
-
* edge functions.
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```ts
|
|
25
|
-
* import https from "https"
|
|
26
|
-
*
|
|
27
|
-
* const options: RedisConfigNodejs = {
|
|
28
|
-
* agent: new https.Agent({ keepAlive: true })
|
|
29
|
-
* }
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
/**
|
|
33
|
-
* The signal will allow aborting requests on the fly.
|
|
34
|
-
* For more check: https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal
|
|
35
|
-
*/
|
|
36
|
-
signal?: AbortSignal;
|
|
37
|
-
latencyLogging?: boolean;
|
|
38
|
-
agent?: unknown;
|
|
39
|
-
keepAlive?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* When this flag is enabled, any subsequent commands issued by this client are guaranteed to observe the effects of all earlier writes submitted by the same client.
|
|
42
|
-
*/
|
|
43
|
-
readYourWrites?: boolean;
|
|
44
|
-
} & RedisOptions & RequesterConfig;
|
|
45
|
-
/**
|
|
46
|
-
* Serverless redis client for upstash.
|
|
47
|
-
*/
|
|
48
|
-
declare class Redis extends Redis$1 {
|
|
49
|
-
/**
|
|
50
|
-
* Create a new redis client by providing the url and token
|
|
51
|
-
*
|
|
52
|
-
* @example
|
|
53
|
-
* ```typescript
|
|
54
|
-
* const redis = new Redis({
|
|
55
|
-
* url: "<UPSTASH_REDIS_REST_URL>",
|
|
56
|
-
* token: "<UPSTASH_REDIS_REST_TOKEN>",
|
|
57
|
-
* });
|
|
58
|
-
* ```
|
|
59
|
-
*/
|
|
60
|
-
constructor(config: RedisConfigNodejs);
|
|
61
|
-
/**
|
|
62
|
-
* Create a new Upstash Redis instance from environment variables.
|
|
63
|
-
*
|
|
64
|
-
* Use this to automatically load connection secrets from your environment
|
|
65
|
-
* variables. For instance when using the Vercel integration.
|
|
66
|
-
*
|
|
67
|
-
* This tries to load `UPSTASH_REDIS_REST_URL` and `UPSTASH_REDIS_REST_TOKEN` from
|
|
68
|
-
* your environment using `process.env`.
|
|
69
|
-
*/
|
|
70
|
-
static fromEnv(config?: Omit<RedisConfigNodejs, "url" | "token">): Redis;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export { Redis, type RedisConfigNodejs };
|