@upstash/redis 1.2.0 → 1.3.0
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/README.md +21 -0
- package/{chunk-HIDCSH5S.mjs → chunk-5LZNFEHI.mjs} +1 -3
- package/{chunk-FR62Y7XB.mjs → chunk-C2RGMNOQ.mjs} +23 -7
- package/{chunk-256N7RVN.mjs → chunk-CTSQDNTV.mjs} +16 -1
- package/{chunk-HZBBCLMC.mjs → chunk-K2UC7PHG.mjs} +66 -6
- package/cloudflare.d.ts +18 -16
- package/cloudflare.js +73 -12
- package/cloudflare.mjs +4 -6
- package/commands.d.ts +37 -3
- package/commands.js +71 -6
- package/commands.mjs +11 -1
- package/fastly.d.ts +23 -21
- package/fastly.js +73 -12
- package/fastly.mjs +4 -6
- package/http.d.ts +13 -6
- package/http.js +1 -3
- package/http.mjs +1 -1
- package/index.d.ts +5 -3
- package/index.js +98 -14
- package/index.mjs +4 -4
- package/nodejs.d.ts +46 -25
- package/nodejs.js +98 -14
- package/nodejs.mjs +4 -4
- package/package.json +1 -1
- package/{redis-a9efcf58.d.ts → redis-338577a3.d.ts} +508 -464
- package/{zunionstore-342168a6.d.ts → zunionstore-633a2e7a.d.ts} +17 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Requester } from './http';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Command offers default (de)serialization and the exec method to all commands.
|
|
@@ -20,7 +20,7 @@ declare class Command<TData, TResult> {
|
|
|
20
20
|
/**
|
|
21
21
|
* Execute the command using a client.
|
|
22
22
|
*/
|
|
23
|
-
exec(client:
|
|
23
|
+
exec(client: Requester): Promise<TData>;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
declare type NonEmptyArray<T> = [T, ...T[]];
|
|
@@ -37,6 +37,20 @@ declare class ScanCommand extends Command<[number, string[]], [number, string[]]
|
|
|
37
37
|
constructor(cursor: number, opts?: ScanCommandOptions);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
declare type ScriptFlushCommandOptions = {
|
|
41
|
+
sync: true;
|
|
42
|
+
async?: never;
|
|
43
|
+
} | {
|
|
44
|
+
sync?: never;
|
|
45
|
+
async: true;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* @see https://redis.io/commands/script-flush
|
|
49
|
+
*/
|
|
50
|
+
declare class ScriptFlushCommand extends Command<"OK", "OK"> {
|
|
51
|
+
constructor(opts?: ScriptFlushCommandOptions);
|
|
52
|
+
}
|
|
53
|
+
|
|
40
54
|
declare type SetCommandOptions = ({
|
|
41
55
|
ex: number;
|
|
42
56
|
px?: never;
|
|
@@ -170,4 +184,4 @@ declare class ZUnionStoreCommand extends Command<number, number> {
|
|
|
170
184
|
constructor(destination: string, numKeys: number, keys: string[], opts?: ZUnionStoreCommandOptions);
|
|
171
185
|
}
|
|
172
186
|
|
|
173
|
-
export { CommandArgs as C, NonEmptyArray as N, ScanCommandOptions as S, Type as T, UnlinkCommand as U, ZAddCommandOptions as Z,
|
|
187
|
+
export { CommandArgs as C, NonEmptyArray as N, ScanCommandOptions as S, Type as T, UnlinkCommand as U, ZAddCommandOptions as Z, ScriptFlushCommandOptions as a, SetCommandOptions as b, ScoreMember as c, ZAddCommandOptionsWithIncr as d, ZInterStoreCommandOptions as e, ZRangeCommandOptions as f, ZUnionStoreCommandOptions as g, Command as h, ScanCommand as i, ScriptFlushCommand as j, SetCommand as k, TypeCommand as l, ZAddCommand as m, ZInterStoreCommand as n, ZRangeCommand as o, ZUnionStoreCommand as p };
|