@redis/bloom 5.0.0 → 5.1.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/dist/lib/commands/bloom/INFO.js +2 -2
- package/dist/lib/commands/bloom/INFO.js.map +1 -1
- package/dist/lib/commands/bloom/helpers.d.ts +3 -0
- package/dist/lib/commands/bloom/helpers.d.ts.map +1 -0
- package/dist/lib/commands/bloom/helpers.js +28 -0
- package/dist/lib/commands/bloom/helpers.js.map +1 -0
- package/dist/lib/commands/bloom/index.d.ts +23 -24
- package/dist/lib/commands/bloom/index.d.ts.map +1 -1
- package/dist/lib/commands/bloom/index.js +15 -25
- package/dist/lib/commands/bloom/index.js.map +1 -1
- package/dist/lib/commands/count-min-sketch/index.d.ts +12 -12
- package/dist/lib/commands/cuckoo/INSERTNX.d.ts +1 -1
- package/dist/lib/commands/cuckoo/index.d.ts +22 -22
- package/dist/lib/commands/index.d.ts +98 -98
- package/dist/lib/commands/t-digest/BYREVRANK.d.ts +1 -1
- package/dist/lib/commands/t-digest/REVRANK.d.ts +1 -1
- package/dist/lib/commands/t-digest/index.d.ts +28 -28
- package/dist/lib/commands/top-k/index.d.ts +16 -16
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
3
|
+
const helpers_1 = require("./helpers");
|
|
4
4
|
exports.default = {
|
|
5
5
|
IS_READ_ONLY: true,
|
|
6
6
|
parseCommand(parser, key) {
|
|
@@ -9,7 +9,7 @@ exports.default = {
|
|
|
9
9
|
},
|
|
10
10
|
transformReply: {
|
|
11
11
|
2: (reply, _, typeMapping) => {
|
|
12
|
-
return (0,
|
|
12
|
+
return (0, helpers_1.transformInfoV2Reply)(reply, typeMapping);
|
|
13
13
|
},
|
|
14
14
|
3: undefined
|
|
15
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"INFO.js","sourceRoot":"","sources":["../../../../lib/commands/bloom/INFO.ts"],"names":[],"mappings":";;AAEA,
|
|
1
|
+
{"version":3,"file":"INFO.js","sourceRoot":"","sources":["../../../../lib/commands/bloom/INFO.ts"],"names":[],"mappings":";;AAEA,uCAAiD;AAUjD,kBAAe;IACb,YAAY,EAAE,IAAI;IAClB,YAAY,CAAC,MAAqB,EAAE,GAAkB;QACpD,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACvB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtB,CAAC;IACD,cAAc,EAAE;QACd,CAAC,EAAE,CAAC,KAA8C,EAAE,CAAC,EAAE,WAAyB,EAAkB,EAAE;YAClG,OAAO,IAAA,8BAAoB,EAAiB,KAAK,EAAE,WAAW,CAAC,CAAC;QAClE,CAAC;QACD,CAAC,EAAE,SAA4C;KAChD;CACyB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../lib/commands/bloom/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,WAAW,EAAE,MAAM,eAAe,CAAC;AAExD,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,CAAC,CA0BvF"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.transformInfoV2Reply = void 0;
|
|
4
|
+
const client_1 = require("@redis/client");
|
|
5
|
+
function transformInfoV2Reply(reply, typeMapping) {
|
|
6
|
+
const mapType = typeMapping ? typeMapping[client_1.RESP_TYPES.MAP] : undefined;
|
|
7
|
+
switch (mapType) {
|
|
8
|
+
case Array: {
|
|
9
|
+
return reply;
|
|
10
|
+
}
|
|
11
|
+
case Map: {
|
|
12
|
+
const ret = new Map();
|
|
13
|
+
for (let i = 0; i < reply.length; i += 2) {
|
|
14
|
+
ret.set(reply[i].toString(), reply[i + 1]);
|
|
15
|
+
}
|
|
16
|
+
return ret;
|
|
17
|
+
}
|
|
18
|
+
default: {
|
|
19
|
+
const ret = Object.create(null);
|
|
20
|
+
for (let i = 0; i < reply.length; i += 2) {
|
|
21
|
+
ret[reply[i].toString()] = reply[i + 1];
|
|
22
|
+
}
|
|
23
|
+
return ret;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.transformInfoV2Reply = transformInfoV2Reply;
|
|
28
|
+
//# sourceMappingURL=helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../lib/commands/bloom/helpers.ts"],"names":[],"mappings":";;;AAAA,0CAAwD;AAExD,SAAgB,oBAAoB,CAAI,KAAiB,EAAE,WAAyB;IAClF,MAAM,OAAO,GAAG,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,mBAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAEtE,QAAQ,OAAO,EAAE,CAAC;QAChB,KAAK,KAAK,CAAC,CAAC,CAAC;YACX,OAAO,KAAqB,CAAC;QAC/B,CAAC;QACD,KAAK,GAAG,CAAC,CAAC,CAAC;YACT,MAAM,GAAG,GAAG,IAAI,GAAG,EAAe,CAAC;YAEnC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;gBACzC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,EAAE,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;YAC7C,CAAC;YAED,OAAO,GAAmB,CAAC;QAC7B,CAAC;QACD,OAAO,CAAC,CAAC,CAAC;YACR,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YAEhC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;gBACzC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;YAC1C,CAAC;YAED,OAAO,GAAmB,CAAC;QAC7B,CAAC;IACH,CAAC;AACH,CAAC;AA1BD,oDA0BC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
export * from './helpers';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
readonly ADD: {
|
|
4
4
|
readonly IS_READ_ONLY: false;
|
|
5
|
-
readonly parseCommand: (this: void, parser: import("@redis/client
|
|
5
|
+
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, item: import("@redis/client/dist/lib/RESP/types").RedisArgument) => void;
|
|
6
6
|
readonly transformReply: {
|
|
7
7
|
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
|
|
8
8
|
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
|
|
@@ -10,7 +10,7 @@ declare const _default: {
|
|
|
10
10
|
};
|
|
11
11
|
readonly add: {
|
|
12
12
|
readonly IS_READ_ONLY: false;
|
|
13
|
-
readonly parseCommand: (this: void, parser: import("@redis/client
|
|
13
|
+
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, item: import("@redis/client/dist/lib/RESP/types").RedisArgument) => void;
|
|
14
14
|
readonly transformReply: {
|
|
15
15
|
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
|
|
16
16
|
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
|
|
@@ -18,17 +18,17 @@ declare const _default: {
|
|
|
18
18
|
};
|
|
19
19
|
readonly CARD: {
|
|
20
20
|
readonly IS_READ_ONLY: true;
|
|
21
|
-
readonly parseCommand: (this: void, parser: import("@redis/client
|
|
21
|
+
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument) => void;
|
|
22
22
|
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number>;
|
|
23
23
|
};
|
|
24
24
|
readonly card: {
|
|
25
25
|
readonly IS_READ_ONLY: true;
|
|
26
|
-
readonly parseCommand: (this: void, parser: import("@redis/client
|
|
26
|
+
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument) => void;
|
|
27
27
|
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number>;
|
|
28
28
|
};
|
|
29
29
|
readonly EXISTS: {
|
|
30
30
|
readonly IS_READ_ONLY: true;
|
|
31
|
-
readonly parseCommand: (this: void, parser: import("@redis/client
|
|
31
|
+
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, item: import("@redis/client/dist/lib/RESP/types").RedisArgument) => void;
|
|
32
32
|
readonly transformReply: {
|
|
33
33
|
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
|
|
34
34
|
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
|
|
@@ -36,7 +36,7 @@ declare const _default: {
|
|
|
36
36
|
};
|
|
37
37
|
readonly exists: {
|
|
38
38
|
readonly IS_READ_ONLY: true;
|
|
39
|
-
readonly parseCommand: (this: void, parser: import("@redis/client
|
|
39
|
+
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, item: import("@redis/client/dist/lib/RESP/types").RedisArgument) => void;
|
|
40
40
|
readonly transformReply: {
|
|
41
41
|
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
|
|
42
42
|
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
|
|
@@ -44,23 +44,23 @@ declare const _default: {
|
|
|
44
44
|
};
|
|
45
45
|
readonly INFO: {
|
|
46
46
|
readonly IS_READ_ONLY: true;
|
|
47
|
-
readonly parseCommand: (this: void, parser: import("@redis/client
|
|
47
|
+
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument) => void;
|
|
48
48
|
readonly transformReply: {
|
|
49
|
-
readonly 2: (this: void, reply: [import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Capacity">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Size">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Number of filters">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Number of items inserted">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Expansion rate">, import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").NumberReply<number>], _: any, typeMapping?: TypeMapping | undefined) => import("./INFO").BfInfoReplyMap;
|
|
49
|
+
readonly 2: (this: void, reply: [import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Capacity">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Size">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Number of filters">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Number of items inserted">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Expansion rate">, import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").NumberReply<number>], _: any, typeMapping?: import("@redis/client/dist/lib/RESP/types").TypeMapping | undefined) => import("./INFO").BfInfoReplyMap;
|
|
50
50
|
readonly 3: () => import("./INFO").BfInfoReplyMap;
|
|
51
51
|
};
|
|
52
52
|
};
|
|
53
53
|
readonly info: {
|
|
54
54
|
readonly IS_READ_ONLY: true;
|
|
55
|
-
readonly parseCommand: (this: void, parser: import("@redis/client
|
|
55
|
+
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument) => void;
|
|
56
56
|
readonly transformReply: {
|
|
57
|
-
readonly 2: (this: void, reply: [import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Capacity">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Size">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Number of filters">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Number of items inserted">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Expansion rate">, import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").NumberReply<number>], _: any, typeMapping?: TypeMapping | undefined) => import("./INFO").BfInfoReplyMap;
|
|
57
|
+
readonly 2: (this: void, reply: [import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Capacity">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Size">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Number of filters">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Number of items inserted">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Expansion rate">, import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").NumberReply<number>], _: any, typeMapping?: import("@redis/client/dist/lib/RESP/types").TypeMapping | undefined) => import("./INFO").BfInfoReplyMap;
|
|
58
58
|
readonly 3: () => import("./INFO").BfInfoReplyMap;
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
61
|
readonly INSERT: {
|
|
62
62
|
readonly IS_READ_ONLY: false;
|
|
63
|
-
readonly parseCommand: (this: void, parser: import("@redis/client
|
|
63
|
+
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, items: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument, options?: import("./INSERT").BfInsertOptions | undefined) => void;
|
|
64
64
|
readonly transformReply: {
|
|
65
65
|
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
|
|
66
66
|
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
|
|
@@ -68,7 +68,7 @@ declare const _default: {
|
|
|
68
68
|
};
|
|
69
69
|
readonly insert: {
|
|
70
70
|
readonly IS_READ_ONLY: false;
|
|
71
|
-
readonly parseCommand: (this: void, parser: import("@redis/client
|
|
71
|
+
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, items: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument, options?: import("./INSERT").BfInsertOptions | undefined) => void;
|
|
72
72
|
readonly transformReply: {
|
|
73
73
|
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
|
|
74
74
|
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
|
|
@@ -76,17 +76,17 @@ declare const _default: {
|
|
|
76
76
|
};
|
|
77
77
|
readonly LOADCHUNK: {
|
|
78
78
|
readonly IS_READ_ONLY: false;
|
|
79
|
-
readonly parseCommand: (this: void, parser: import("@redis/client
|
|
79
|
+
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, iterator: number, chunk: import("@redis/client/dist/lib/RESP/types").RedisArgument) => void;
|
|
80
80
|
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
|
|
81
81
|
};
|
|
82
82
|
readonly loadChunk: {
|
|
83
83
|
readonly IS_READ_ONLY: false;
|
|
84
|
-
readonly parseCommand: (this: void, parser: import("@redis/client
|
|
84
|
+
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, iterator: number, chunk: import("@redis/client/dist/lib/RESP/types").RedisArgument) => void;
|
|
85
85
|
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
|
|
86
86
|
};
|
|
87
87
|
readonly MADD: {
|
|
88
88
|
readonly IS_READ_ONLY: false;
|
|
89
|
-
readonly parseCommand: (this: void, parser: import("@redis/client
|
|
89
|
+
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, items: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument) => void;
|
|
90
90
|
readonly transformReply: {
|
|
91
91
|
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
|
|
92
92
|
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
|
|
@@ -94,7 +94,7 @@ declare const _default: {
|
|
|
94
94
|
};
|
|
95
95
|
readonly mAdd: {
|
|
96
96
|
readonly IS_READ_ONLY: false;
|
|
97
|
-
readonly parseCommand: (this: void, parser: import("@redis/client
|
|
97
|
+
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, items: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument) => void;
|
|
98
98
|
readonly transformReply: {
|
|
99
99
|
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
|
|
100
100
|
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
|
|
@@ -102,7 +102,7 @@ declare const _default: {
|
|
|
102
102
|
};
|
|
103
103
|
readonly MEXISTS: {
|
|
104
104
|
readonly IS_READ_ONLY: true;
|
|
105
|
-
readonly parseCommand: (this: void, parser: import("@redis/client
|
|
105
|
+
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, items: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument) => void;
|
|
106
106
|
readonly transformReply: {
|
|
107
107
|
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
|
|
108
108
|
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
|
|
@@ -110,7 +110,7 @@ declare const _default: {
|
|
|
110
110
|
};
|
|
111
111
|
readonly mExists: {
|
|
112
112
|
readonly IS_READ_ONLY: true;
|
|
113
|
-
readonly parseCommand: (this: void, parser: import("@redis/client
|
|
113
|
+
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, items: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument) => void;
|
|
114
114
|
readonly transformReply: {
|
|
115
115
|
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
|
|
116
116
|
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
|
|
@@ -118,17 +118,17 @@ declare const _default: {
|
|
|
118
118
|
};
|
|
119
119
|
readonly RESERVE: {
|
|
120
120
|
readonly IS_READ_ONLY: true;
|
|
121
|
-
readonly parseCommand: (this: void, parser: import("@redis/client
|
|
121
|
+
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, errorRate: number, capacity: number, options?: import("./RESERVE").BfReserveOptions | undefined) => void;
|
|
122
122
|
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
|
|
123
123
|
};
|
|
124
124
|
readonly reserve: {
|
|
125
125
|
readonly IS_READ_ONLY: true;
|
|
126
|
-
readonly parseCommand: (this: void, parser: import("@redis/client
|
|
126
|
+
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, errorRate: number, capacity: number, options?: import("./RESERVE").BfReserveOptions | undefined) => void;
|
|
127
127
|
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
|
|
128
128
|
};
|
|
129
129
|
readonly SCANDUMP: {
|
|
130
130
|
readonly IS_READ_ONLY: true;
|
|
131
|
-
readonly parseCommand: (this: void, parser: import("@redis/client
|
|
131
|
+
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, iterator: number) => void;
|
|
132
132
|
readonly transformReply: (this: void, reply: [import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>]) => {
|
|
133
133
|
iterator: import("@redis/client/dist/lib/RESP/types").NumberReply<number>;
|
|
134
134
|
chunk: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>;
|
|
@@ -136,7 +136,7 @@ declare const _default: {
|
|
|
136
136
|
};
|
|
137
137
|
readonly scanDump: {
|
|
138
138
|
readonly IS_READ_ONLY: true;
|
|
139
|
-
readonly parseCommand: (this: void, parser: import("@redis/client
|
|
139
|
+
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, iterator: number) => void;
|
|
140
140
|
readonly transformReply: (this: void, reply: [import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>]) => {
|
|
141
141
|
iterator: import("@redis/client/dist/lib/RESP/types").NumberReply<number>;
|
|
142
142
|
chunk: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>;
|
|
@@ -144,5 +144,4 @@ declare const _default: {
|
|
|
144
144
|
};
|
|
145
145
|
};
|
|
146
146
|
export default _default;
|
|
147
|
-
export declare function transformInfoV2Reply<T>(reply: Array<any>, typeMapping?: TypeMapping): T;
|
|
148
147
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/commands/bloom/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/commands/bloom/index.ts"],"names":[],"mappings":"AAaA,cAAc,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE1B,wBAqBmC"}
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
18
|
};
|
|
5
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.transformInfoV2Reply = void 0;
|
|
7
20
|
const ADD_1 = __importDefault(require("./ADD"));
|
|
8
21
|
const CARD_1 = __importDefault(require("./CARD"));
|
|
9
22
|
const EXISTS_1 = __importDefault(require("./EXISTS"));
|
|
@@ -14,7 +27,7 @@ const MADD_1 = __importDefault(require("./MADD"));
|
|
|
14
27
|
const MEXISTS_1 = __importDefault(require("./MEXISTS"));
|
|
15
28
|
const RESERVE_1 = __importDefault(require("./RESERVE"));
|
|
16
29
|
const SCANDUMP_1 = __importDefault(require("./SCANDUMP"));
|
|
17
|
-
|
|
30
|
+
__exportStar(require("./helpers"), exports);
|
|
18
31
|
exports.default = {
|
|
19
32
|
ADD: ADD_1.default,
|
|
20
33
|
add: ADD_1.default,
|
|
@@ -37,27 +50,4 @@ exports.default = {
|
|
|
37
50
|
SCANDUMP: SCANDUMP_1.default,
|
|
38
51
|
scanDump: SCANDUMP_1.default
|
|
39
52
|
};
|
|
40
|
-
function transformInfoV2Reply(reply, typeMapping) {
|
|
41
|
-
const mapType = typeMapping ? typeMapping[client_1.RESP_TYPES.MAP] : undefined;
|
|
42
|
-
switch (mapType) {
|
|
43
|
-
case Array: {
|
|
44
|
-
return reply;
|
|
45
|
-
}
|
|
46
|
-
case Map: {
|
|
47
|
-
const ret = new Map();
|
|
48
|
-
for (let i = 0; i < reply.length; i += 2) {
|
|
49
|
-
ret.set(reply[i].toString(), reply[i + 1]);
|
|
50
|
-
}
|
|
51
|
-
return ret;
|
|
52
|
-
}
|
|
53
|
-
default: {
|
|
54
|
-
const ret = Object.create(null);
|
|
55
|
-
for (let i = 0; i < reply.length; i += 2) {
|
|
56
|
-
ret[reply[i].toString()] = reply[i + 1];
|
|
57
|
-
}
|
|
58
|
-
return ret;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
exports.transformInfoV2Reply = transformInfoV2Reply;
|
|
63
53
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/commands/bloom/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/commands/bloom/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAEA,gDAAwB;AACxB,kDAA0B;AAC1B,sDAA8B;AAC9B,kDAA0B;AAC1B,sDAA8B;AAC9B,4DAAoC;AACpC,kDAA0B;AAC1B,wDAAgC;AAChC,wDAAgC;AAChC,0DAAkC;AAElC,4CAA0B;AAE1B,kBAAe;IACb,GAAG,EAAH,aAAG;IACH,GAAG,EAAE,aAAG;IACR,IAAI,EAAJ,cAAI;IACJ,IAAI,EAAE,cAAI;IACV,MAAM,EAAN,gBAAM;IACN,MAAM,EAAE,gBAAM;IACd,IAAI,EAAJ,cAAI;IACJ,IAAI,EAAE,cAAI;IACV,MAAM,EAAN,gBAAM;IACN,MAAM,EAAE,gBAAM;IACd,SAAS,EAAT,mBAAS;IACT,SAAS,EAAE,mBAAS;IACpB,IAAI,EAAJ,cAAI;IACJ,IAAI,EAAE,cAAI;IACV,OAAO,EAAP,iBAAO;IACP,OAAO,EAAE,iBAAO;IAChB,OAAO,EAAP,iBAAO;IACP,OAAO,EAAE,iBAAO;IAChB,QAAQ,EAAR,kBAAQ;IACR,QAAQ,EAAE,kBAAQ;CACc,CAAC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
readonly INCRBY: {
|
|
3
3
|
readonly IS_READ_ONLY: false;
|
|
4
|
-
readonly parseCommand: (this: void, parser: import("@redis/client
|
|
4
|
+
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, items: import("./INCRBY").BfIncrByItem | import("./INCRBY").BfIncrByItem[]) => void;
|
|
5
5
|
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
|
|
6
6
|
};
|
|
7
7
|
readonly incrBy: {
|
|
8
8
|
readonly IS_READ_ONLY: false;
|
|
9
|
-
readonly parseCommand: (this: void, parser: import("@redis/client
|
|
9
|
+
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, items: import("./INCRBY").BfIncrByItem | import("./INCRBY").BfIncrByItem[]) => void;
|
|
10
10
|
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
|
|
11
11
|
};
|
|
12
12
|
readonly INFO: {
|
|
13
13
|
readonly IS_READ_ONLY: true;
|
|
14
|
-
readonly parseCommand: (this: void, parser: import("@redis/client
|
|
14
|
+
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument) => void;
|
|
15
15
|
readonly transformReply: {
|
|
16
16
|
readonly 2: (this: void, reply: [import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"width">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"depth">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"count">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>], _: any, typeMapping?: import("@redis/client/dist/lib/RESP/types").TypeMapping | undefined) => import("./INFO").CmsInfoReply;
|
|
17
17
|
readonly 3: () => import("./INFO").CmsInfoReply;
|
|
@@ -19,7 +19,7 @@ declare const _default: {
|
|
|
19
19
|
};
|
|
20
20
|
readonly info: {
|
|
21
21
|
readonly IS_READ_ONLY: true;
|
|
22
|
-
readonly parseCommand: (this: void, parser: import("@redis/client
|
|
22
|
+
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument) => void;
|
|
23
23
|
readonly transformReply: {
|
|
24
24
|
readonly 2: (this: void, reply: [import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"width">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"depth">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"count">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>], _: any, typeMapping?: import("@redis/client/dist/lib/RESP/types").TypeMapping | undefined) => import("./INFO").CmsInfoReply;
|
|
25
25
|
readonly 3: () => import("./INFO").CmsInfoReply;
|
|
@@ -27,42 +27,42 @@ declare const _default: {
|
|
|
27
27
|
};
|
|
28
28
|
readonly INITBYDIM: {
|
|
29
29
|
readonly IS_READ_ONLY: false;
|
|
30
|
-
readonly parseCommand: (this: void, parser: import("@redis/client
|
|
30
|
+
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, width: number, depth: number) => void;
|
|
31
31
|
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
|
|
32
32
|
};
|
|
33
33
|
readonly initByDim: {
|
|
34
34
|
readonly IS_READ_ONLY: false;
|
|
35
|
-
readonly parseCommand: (this: void, parser: import("@redis/client
|
|
35
|
+
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, width: number, depth: number) => void;
|
|
36
36
|
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
|
|
37
37
|
};
|
|
38
38
|
readonly INITBYPROB: {
|
|
39
39
|
readonly IS_READ_ONLY: false;
|
|
40
|
-
readonly parseCommand: (this: void, parser: import("@redis/client
|
|
40
|
+
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, error: number, probability: number) => void;
|
|
41
41
|
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
|
|
42
42
|
};
|
|
43
43
|
readonly initByProb: {
|
|
44
44
|
readonly IS_READ_ONLY: false;
|
|
45
|
-
readonly parseCommand: (this: void, parser: import("@redis/client
|
|
45
|
+
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, error: number, probability: number) => void;
|
|
46
46
|
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
|
|
47
47
|
};
|
|
48
48
|
readonly MERGE: {
|
|
49
49
|
readonly IS_READ_ONLY: false;
|
|
50
|
-
readonly parseCommand: (this: void, parser: import("@redis/client
|
|
50
|
+
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, destination: import("@redis/client/dist/lib/RESP/types").RedisArgument, source: import("./MERGE").BfMergeSketches) => void;
|
|
51
51
|
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
|
|
52
52
|
};
|
|
53
53
|
readonly merge: {
|
|
54
54
|
readonly IS_READ_ONLY: false;
|
|
55
|
-
readonly parseCommand: (this: void, parser: import("@redis/client
|
|
55
|
+
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, destination: import("@redis/client/dist/lib/RESP/types").RedisArgument, source: import("./MERGE").BfMergeSketches) => void;
|
|
56
56
|
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
|
|
57
57
|
};
|
|
58
58
|
readonly QUERY: {
|
|
59
59
|
readonly IS_READ_ONLY: true;
|
|
60
|
-
readonly parseCommand: (this: void, parser: import("@redis/client
|
|
60
|
+
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, items: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument) => void;
|
|
61
61
|
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
|
|
62
62
|
};
|
|
63
63
|
readonly query: {
|
|
64
64
|
readonly IS_READ_ONLY: true;
|
|
65
|
-
readonly parseCommand: (this: void, parser: import("@redis/client
|
|
65
|
+
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, items: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument) => void;
|
|
66
66
|
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
|
|
67
67
|
};
|
|
68
68
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
readonly IS_READ_ONLY: false;
|
|
3
|
-
readonly parseCommand: (this: void, parser: import("@redis/client
|
|
3
|
+
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, items: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument, options?: import("./INSERT").CfInsertOptions | undefined) => void;
|
|
4
4
|
readonly transformReply: {
|
|
5
5
|
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
|
|
6
6
|
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
|