@redis/bloom 1.2.0 → 2.0.0-next.2
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/ADD.d.ts +11 -0
- package/dist/lib/commands/bloom/ADD.js +11 -0
- package/dist/lib/commands/bloom/CARD.d.ts +8 -0
- package/dist/lib/commands/bloom/CARD.js +10 -0
- package/dist/lib/commands/bloom/EXISTS.d.ts +11 -0
- package/dist/lib/commands/bloom/EXISTS.js +11 -0
- package/dist/lib/commands/bloom/INFO.d.ts +8 -0
- package/dist/lib/commands/bloom/INFO.js +11 -0
- package/dist/lib/commands/bloom/INSERT.d.ts +19 -0
- package/dist/lib/commands/bloom/INSERT.js +29 -0
- package/dist/lib/commands/bloom/LOADCHUNK.d.ts +8 -0
- package/dist/lib/commands/bloom/LOADCHUNK.js +10 -0
- package/dist/lib/commands/bloom/MADD.d.ts +12 -0
- package/dist/lib/commands/bloom/MADD.js +12 -0
- package/dist/lib/commands/bloom/MEXISTS.d.ts +12 -0
- package/dist/lib/commands/bloom/MEXISTS.js +12 -0
- package/dist/lib/commands/bloom/RESERVE.d.ts +12 -0
- package/dist/lib/commands/bloom/RESERVE.js +17 -0
- package/dist/lib/commands/bloom/SCANDUMP.d.ts +11 -0
- package/dist/lib/commands/bloom/SCANDUMP.js +15 -0
- package/dist/lib/commands/bloom/index.d.ts +159 -0
- package/dist/lib/commands/bloom/index.js +37 -0
- package/dist/lib/commands/count-min-sketch/INCRBY.d.ts +12 -0
- package/dist/lib/commands/count-min-sketch/INCRBY.js +22 -0
- package/dist/lib/commands/count-min-sketch/INFO.d.ts +29 -0
- package/dist/lib/commands/count-min-sketch/INFO.js +17 -0
- package/dist/lib/commands/count-min-sketch/INITBYDIM.d.ts +8 -0
- package/dist/lib/commands/count-min-sketch/INITBYDIM.js +10 -0
- package/dist/lib/commands/count-min-sketch/INITBYPROB.d.ts +8 -0
- package/dist/lib/commands/count-min-sketch/INITBYPROB.js +10 -0
- package/dist/lib/commands/count-min-sketch/MERGE.d.ts +13 -0
- package/dist/lib/commands/count-min-sketch/MERGE.js +25 -0
- package/dist/lib/commands/count-min-sketch/QUERY.d.ts +9 -0
- package/dist/lib/commands/count-min-sketch/QUERY.js +11 -0
- package/dist/lib/commands/count-min-sketch/index.d.ts +89 -0
- package/dist/lib/commands/count-min-sketch/index.js +25 -0
- package/dist/lib/commands/cuckoo/ADD.d.ts +11 -0
- package/dist/lib/commands/cuckoo/ADD.js +11 -0
- package/dist/lib/commands/cuckoo/ADDNX.d.ts +11 -0
- package/dist/lib/commands/cuckoo/ADDNX.js +11 -0
- package/dist/lib/commands/cuckoo/COUNT.d.ts +8 -0
- package/dist/lib/commands/cuckoo/COUNT.js +10 -0
- package/dist/lib/commands/cuckoo/DEL.d.ts +11 -0
- package/dist/lib/commands/cuckoo/DEL.js +11 -0
- package/dist/lib/commands/cuckoo/EXISTS.d.ts +11 -0
- package/dist/lib/commands/cuckoo/EXISTS.js +11 -0
- package/dist/lib/commands/cuckoo/INFO.d.ts +8 -0
- package/dist/lib/commands/cuckoo/INFO.js +51 -0
- package/dist/lib/commands/cuckoo/INSERT.d.ts +17 -0
- package/dist/lib/commands/cuckoo/INSERT.js +22 -0
- package/dist/lib/commands/cuckoo/INSERTNX.d.ts +10 -0
- package/dist/lib/commands/cuckoo/INSERTNX.js +32 -0
- package/dist/lib/commands/cuckoo/LOADCHUNK.d.ts +8 -0
- package/dist/lib/commands/cuckoo/LOADCHUNK.js +10 -0
- package/dist/lib/commands/cuckoo/RESERVE.d.ts +13 -0
- package/dist/lib/commands/cuckoo/RESERVE.js +20 -0
- package/dist/lib/commands/cuckoo/SCANDUMP.d.ts +11 -0
- package/dist/lib/commands/cuckoo/SCANDUMP.js +15 -0
- package/dist/lib/commands/cuckoo/index.d.ts +177 -0
- package/dist/lib/commands/cuckoo/index.js +40 -0
- package/dist/lib/commands/index.d.ts +763 -0
- package/dist/lib/commands/index.js +17 -0
- package/dist/lib/commands/t-digest/ADD.d.ts +8 -0
- package/dist/lib/commands/t-digest/ADD.js +14 -0
- package/dist/lib/commands/t-digest/BYRANK.d.ts +12 -0
- package/dist/lib/commands/t-digest/BYRANK.js +18 -0
- package/dist/lib/commands/t-digest/BYREVRANK.d.ts +10 -0
- package/dist/lib/commands/t-digest/BYREVRANK.js +32 -0
- package/dist/lib/commands/t-digest/CDF.d.ts +11 -0
- package/dist/lib/commands/t-digest/CDF.js +15 -0
- package/dist/lib/commands/t-digest/CREATE.d.ts +11 -0
- package/dist/lib/commands/t-digest/CREATE.js +14 -0
- package/dist/lib/commands/t-digest/INFO.d.ts +8 -0
- package/dist/lib/commands/t-digest/INFO.js +47 -0
- package/dist/lib/commands/t-digest/MAX.d.ts +11 -0
- package/dist/lib/commands/t-digest/MAX.js +11 -0
- package/dist/lib/commands/t-digest/MERGE.d.ts +13 -0
- package/dist/lib/commands/t-digest/MERGE.js +18 -0
- package/dist/lib/commands/t-digest/MIN.d.ts +11 -0
- package/dist/lib/commands/t-digest/MIN.js +11 -0
- package/dist/lib/commands/t-digest/QUANTILE.d.ts +11 -0
- package/dist/lib/commands/t-digest/QUANTILE.js +15 -0
- package/dist/lib/commands/t-digest/RANK.d.ts +9 -0
- package/dist/lib/commands/t-digest/RANK.js +17 -0
- package/dist/lib/commands/t-digest/RESET.d.ts +8 -0
- package/dist/lib/commands/t-digest/RESET.js +10 -0
- package/dist/lib/commands/t-digest/REVRANK.d.ts +7 -0
- package/dist/lib/commands/t-digest/REVRANK.js +32 -0
- package/dist/lib/commands/t-digest/TRIMMED_MEAN.d.ts +11 -0
- package/dist/lib/commands/t-digest/TRIMMED_MEAN.js +16 -0
- package/dist/lib/commands/t-digest/index.d.ts +213 -0
- package/dist/lib/commands/t-digest/index.js +49 -0
- package/dist/lib/commands/top-k/ADD.d.ts +9 -0
- package/dist/lib/commands/top-k/ADD.js +11 -0
- package/dist/lib/commands/top-k/COUNT.d.ts +9 -0
- package/dist/lib/commands/top-k/COUNT.js +11 -0
- package/dist/lib/commands/top-k/INCRBY.d.ts +12 -0
- package/dist/lib/commands/top-k/INCRBY.js +22 -0
- package/dist/lib/commands/top-k/INFO.d.ts +34 -0
- package/dist/lib/commands/top-k/INFO.js +18 -0
- package/dist/lib/commands/top-k/LIST.d.ts +8 -0
- package/dist/lib/commands/top-k/LIST.js +10 -0
- package/dist/lib/commands/top-k/LIST_WITHCOUNT.d.ts +11 -0
- package/dist/lib/commands/top-k/LIST_WITHCOUNT.js +19 -0
- package/dist/lib/commands/top-k/QUERY.d.ts +12 -0
- package/dist/lib/commands/top-k/QUERY.js +11 -0
- package/dist/lib/commands/top-k/RESERVE.d.ts +13 -0
- package/dist/lib/commands/top-k/RESERVE.js +14 -0
- package/dist/lib/commands/top-k/index.d.ts +127 -0
- package/dist/lib/commands/top-k/index.js +31 -0
- package/dist/{index.js → lib/index.js} +4 -1
- package/package.json +22 -18
- package/dist/commands/bloom/ADD.d.ts +0 -3
- package/dist/commands/bloom/ADD.js +0 -10
- package/dist/commands/bloom/CARD.d.ts +0 -4
- package/dist/commands/bloom/CARD.js +0 -9
- package/dist/commands/bloom/EXISTS.d.ts +0 -4
- package/dist/commands/bloom/EXISTS.js +0 -11
- package/dist/commands/bloom/INFO.d.ts +0 -23
- package/dist/commands/bloom/INFO.js +0 -19
- package/dist/commands/bloom/INSERT.d.ts +0 -11
- package/dist/commands/bloom/INSERT.js +0 -28
- package/dist/commands/bloom/LOADCHUNK.d.ts +0 -4
- package/dist/commands/bloom/LOADCHUNK.js +0 -8
- package/dist/commands/bloom/MADD.d.ts +0 -3
- package/dist/commands/bloom/MADD.js +0 -10
- package/dist/commands/bloom/MEXISTS.d.ts +0 -4
- package/dist/commands/bloom/MEXISTS.js +0 -11
- package/dist/commands/bloom/RESERVE.d.ts +0 -8
- package/dist/commands/bloom/RESERVE.js +0 -15
- package/dist/commands/bloom/SCANDUMP.d.ts +0 -13
- package/dist/commands/bloom/SCANDUMP.js +0 -16
- package/dist/commands/bloom/index.d.ts +0 -33
- package/dist/commands/bloom/index.js +0 -34
- package/dist/commands/count-min-sketch/INCRBY.d.ts +0 -8
- package/dist/commands/count-min-sketch/INCRBY.js +0 -20
- package/dist/commands/count-min-sketch/INFO.d.ts +0 -17
- package/dist/commands/count-min-sketch/INFO.js +0 -17
- package/dist/commands/count-min-sketch/INITBYDIM.d.ts +0 -3
- package/dist/commands/count-min-sketch/INITBYDIM.js +0 -8
- package/dist/commands/count-min-sketch/INITBYPROB.d.ts +0 -3
- package/dist/commands/count-min-sketch/INITBYPROB.js +0 -8
- package/dist/commands/count-min-sketch/MERGE.d.ts +0 -9
- package/dist/commands/count-min-sketch/MERGE.js +0 -28
- package/dist/commands/count-min-sketch/QUERY.d.ts +0 -5
- package/dist/commands/count-min-sketch/QUERY.js +0 -10
- package/dist/commands/count-min-sketch/index.d.ts +0 -21
- package/dist/commands/count-min-sketch/index.js +0 -22
- package/dist/commands/cuckoo/ADD.d.ts +0 -3
- package/dist/commands/cuckoo/ADD.js +0 -10
- package/dist/commands/cuckoo/ADDNX.d.ts +0 -3
- package/dist/commands/cuckoo/ADDNX.js +0 -10
- package/dist/commands/cuckoo/COUNT.d.ts +0 -3
- package/dist/commands/cuckoo/COUNT.js +0 -8
- package/dist/commands/cuckoo/DEL.d.ts +0 -3
- package/dist/commands/cuckoo/DEL.js +0 -10
- package/dist/commands/cuckoo/EXISTS.d.ts +0 -4
- package/dist/commands/cuckoo/EXISTS.js +0 -11
- package/dist/commands/cuckoo/INFO.d.ts +0 -32
- package/dist/commands/cuckoo/INFO.js +0 -22
- package/dist/commands/cuckoo/INSERT.d.ts +0 -5
- package/dist/commands/cuckoo/INSERT.js +0 -11
- package/dist/commands/cuckoo/INSERTNX.d.ts +0 -5
- package/dist/commands/cuckoo/INSERTNX.js +0 -11
- package/dist/commands/cuckoo/LOADCHUNK.d.ts +0 -4
- package/dist/commands/cuckoo/LOADCHUNK.js +0 -8
- package/dist/commands/cuckoo/RESERVE.d.ts +0 -9
- package/dist/commands/cuckoo/RESERVE.js +0 -18
- package/dist/commands/cuckoo/SCANDUMP.d.ts +0 -12
- package/dist/commands/cuckoo/SCANDUMP.js +0 -15
- package/dist/commands/cuckoo/index.d.ts +0 -42
- package/dist/commands/cuckoo/index.js +0 -51
- package/dist/commands/index.d.ts +0 -111
- package/dist/commands/index.js +0 -14
- package/dist/commands/t-digest/ADD.d.ts +0 -4
- package/dist/commands/t-digest/ADD.js +0 -12
- package/dist/commands/t-digest/BYRANK.d.ts +0 -5
- package/dist/commands/t-digest/BYRANK.js +0 -15
- package/dist/commands/t-digest/BYREVRANK.d.ts +0 -5
- package/dist/commands/t-digest/BYREVRANK.js +0 -15
- package/dist/commands/t-digest/CDF.d.ts +0 -5
- package/dist/commands/t-digest/CDF.js +0 -15
- package/dist/commands/t-digest/CREATE.d.ts +0 -5
- package/dist/commands/t-digest/CREATE.js +0 -9
- package/dist/commands/t-digest/INFO.d.ts +0 -31
- package/dist/commands/t-digest/INFO.js +0 -24
- package/dist/commands/t-digest/MAX.d.ts +0 -5
- package/dist/commands/t-digest/MAX.js +0 -14
- package/dist/commands/t-digest/MERGE.d.ts +0 -9
- package/dist/commands/t-digest/MERGE.js +0 -15
- package/dist/commands/t-digest/MIN.d.ts +0 -5
- package/dist/commands/t-digest/MIN.js +0 -14
- package/dist/commands/t-digest/QUANTILE.d.ts +0 -5
- package/dist/commands/t-digest/QUANTILE.js +0 -18
- package/dist/commands/t-digest/RANK.d.ts +0 -5
- package/dist/commands/t-digest/RANK.js +0 -13
- package/dist/commands/t-digest/RESET.d.ts +0 -4
- package/dist/commands/t-digest/RESET.js +0 -8
- package/dist/commands/t-digest/REVRANK.d.ts +0 -5
- package/dist/commands/t-digest/REVRANK.js +0 -13
- package/dist/commands/t-digest/TRIMMED_MEAN.d.ts +0 -5
- package/dist/commands/t-digest/TRIMMED_MEAN.js +0 -16
- package/dist/commands/t-digest/index.d.ts +0 -52
- package/dist/commands/t-digest/index.js +0 -71
- package/dist/commands/top-k/ADD.d.ts +0 -4
- package/dist/commands/top-k/ADD.js +0 -9
- package/dist/commands/top-k/COUNT.d.ts +0 -5
- package/dist/commands/top-k/COUNT.js +0 -10
- package/dist/commands/top-k/INCRBY.d.ts +0 -8
- package/dist/commands/top-k/INCRBY.js +0 -20
- package/dist/commands/top-k/INFO.d.ts +0 -20
- package/dist/commands/top-k/INFO.js +0 -18
- package/dist/commands/top-k/LIST.d.ts +0 -4
- package/dist/commands/top-k/LIST.js +0 -9
- package/dist/commands/top-k/LIST_WITHCOUNT.d.ts +0 -10
- package/dist/commands/top-k/LIST_WITHCOUNT.js +0 -20
- package/dist/commands/top-k/QUERY.d.ts +0 -5
- package/dist/commands/top-k/QUERY.js +0 -10
- package/dist/commands/top-k/RESERVE.d.ts +0 -10
- package/dist/commands/top-k/RESERVE.js +0 -13
- package/dist/commands/top-k/index.d.ts +0 -27
- package/dist/commands/top-k/index.js +0 -28
- /package/dist/{index.d.ts → lib/index.d.ts} +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RedisArgument } from '@redis/client/dist/lib/RESP/types';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
readonly FIRST_KEY_INDEX: 1;
|
|
4
|
+
readonly IS_READ_ONLY: false;
|
|
5
|
+
readonly transformArguments: (this: void, key: RedisArgument, item: RedisArgument) => RedisArgument[];
|
|
6
|
+
readonly transformReply: {
|
|
7
|
+
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
|
|
8
|
+
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
|
|
4
|
+
exports.default = {
|
|
5
|
+
FIRST_KEY_INDEX: 1,
|
|
6
|
+
IS_READ_ONLY: false,
|
|
7
|
+
transformArguments(key, item) {
|
|
8
|
+
return ['BF.ADD', key, item];
|
|
9
|
+
},
|
|
10
|
+
transformReply: generic_transformers_1.transformBooleanReply
|
|
11
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RedisArgument, NumberReply } from '@redis/client/dist/lib/RESP/types';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
readonly FIRST_KEY_INDEX: 1;
|
|
4
|
+
readonly IS_READ_ONLY: true;
|
|
5
|
+
readonly transformArguments: (this: void, key: RedisArgument) => RedisArgument[];
|
|
6
|
+
readonly transformReply: () => NumberReply;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RedisArgument } from '@redis/client/dist/lib/RESP/types';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
readonly FIRST_KEY_INDEX: 1;
|
|
4
|
+
readonly IS_READ_ONLY: true;
|
|
5
|
+
readonly transformArguments: (this: void, key: RedisArgument, item: RedisArgument) => RedisArgument[];
|
|
6
|
+
readonly transformReply: {
|
|
7
|
+
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
|
|
8
|
+
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
|
|
4
|
+
exports.default = {
|
|
5
|
+
FIRST_KEY_INDEX: 1,
|
|
6
|
+
IS_READ_ONLY: true,
|
|
7
|
+
transformArguments(key, item) {
|
|
8
|
+
return ['BF.EXISTS', key, item];
|
|
9
|
+
},
|
|
10
|
+
transformReply: generic_transformers_1.transformBooleanReply
|
|
11
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RedisArgument } from '@redis/client/dist/lib/RESP/types';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
readonly FIRST_KEY_INDEX: 1;
|
|
4
|
+
readonly IS_READ_ONLY: true;
|
|
5
|
+
readonly transformArguments: (this: void, key: RedisArgument) => RedisArgument[];
|
|
6
|
+
readonly transformReply: () => any;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { RedisArgument } from '@redis/client/dist/lib/RESP/types';
|
|
2
|
+
import { RedisVariadicArgument } from '@redis/client/dist/lib/commands/generic-transformers';
|
|
3
|
+
export interface BfInsertOptions {
|
|
4
|
+
CAPACITY?: number;
|
|
5
|
+
ERROR?: number;
|
|
6
|
+
EXPANSION?: number;
|
|
7
|
+
NOCREATE?: boolean;
|
|
8
|
+
NONSCALING?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: {
|
|
11
|
+
readonly FIRST_KEY_INDEX: 1;
|
|
12
|
+
readonly IS_READ_ONLY: false;
|
|
13
|
+
readonly transformArguments: (this: void, key: RedisArgument, items: RedisVariadicArgument, options?: BfInsertOptions) => import("@redis/client/dist/lib/RESP/types").CommandArguments;
|
|
14
|
+
readonly transformReply: {
|
|
15
|
+
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
|
|
16
|
+
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
|
|
4
|
+
const generic_transformers_2 = require("@redis/client/dist/lib/commands/generic-transformers");
|
|
5
|
+
exports.default = {
|
|
6
|
+
FIRST_KEY_INDEX: 1,
|
|
7
|
+
IS_READ_ONLY: false,
|
|
8
|
+
transformArguments(key, items, options) {
|
|
9
|
+
const args = ['BF.INSERT', key];
|
|
10
|
+
if (options?.CAPACITY !== undefined) {
|
|
11
|
+
args.push('CAPACITY', options.CAPACITY.toString());
|
|
12
|
+
}
|
|
13
|
+
if (options?.ERROR !== undefined) {
|
|
14
|
+
args.push('ERROR', options.ERROR.toString());
|
|
15
|
+
}
|
|
16
|
+
if (options?.EXPANSION !== undefined) {
|
|
17
|
+
args.push('EXPANSION', options.EXPANSION.toString());
|
|
18
|
+
}
|
|
19
|
+
if (options?.NOCREATE) {
|
|
20
|
+
args.push('NOCREATE');
|
|
21
|
+
}
|
|
22
|
+
if (options?.NONSCALING) {
|
|
23
|
+
args.push('NONSCALING');
|
|
24
|
+
}
|
|
25
|
+
args.push('ITEMS');
|
|
26
|
+
return (0, generic_transformers_1.pushVariadicArguments)(args, items);
|
|
27
|
+
},
|
|
28
|
+
transformReply: generic_transformers_2.transformBooleanArrayReply
|
|
29
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RedisArgument, SimpleStringReply } from '@redis/client/dist/lib/RESP/types';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
readonly FIRST_KEY_INDEX: 1;
|
|
4
|
+
readonly IS_READ_ONLY: false;
|
|
5
|
+
readonly transformArguments: (this: void, key: RedisArgument, iterator: number, chunk: RedisArgument) => RedisArgument[];
|
|
6
|
+
readonly transformReply: () => SimpleStringReply<'OK'>;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = {
|
|
4
|
+
FIRST_KEY_INDEX: 1,
|
|
5
|
+
IS_READ_ONLY: false,
|
|
6
|
+
transformArguments(key, iterator, chunk) {
|
|
7
|
+
return ['BF.LOADCHUNK', key, iterator.toString(), chunk];
|
|
8
|
+
},
|
|
9
|
+
transformReply: undefined
|
|
10
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RedisArgument } from '@redis/client/dist/lib/RESP/types';
|
|
2
|
+
import { RedisVariadicArgument } from '@redis/client/dist/lib/commands/generic-transformers';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
readonly FIRST_KEY_INDEX: 1;
|
|
5
|
+
readonly IS_READ_ONLY: false;
|
|
6
|
+
readonly transformArguments: (this: void, key: RedisArgument, items: RedisVariadicArgument) => import("@redis/client/dist/lib/RESP/types").CommandArguments;
|
|
7
|
+
readonly transformReply: {
|
|
8
|
+
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
|
|
9
|
+
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
|
|
4
|
+
const generic_transformers_2 = require("@redis/client/dist/lib/commands/generic-transformers");
|
|
5
|
+
exports.default = {
|
|
6
|
+
FIRST_KEY_INDEX: 1,
|
|
7
|
+
IS_READ_ONLY: false,
|
|
8
|
+
transformArguments(key, items) {
|
|
9
|
+
return (0, generic_transformers_1.pushVariadicArguments)(['BF.MADD', key], items);
|
|
10
|
+
},
|
|
11
|
+
transformReply: generic_transformers_2.transformBooleanArrayReply
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RedisArgument } from '@redis/client/dist/lib/RESP/types';
|
|
2
|
+
import { RedisVariadicArgument } from '@redis/client/dist/lib/commands/generic-transformers';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
readonly FIRST_KEY_INDEX: 1;
|
|
5
|
+
readonly IS_READ_ONLY: true;
|
|
6
|
+
readonly transformArguments: (this: void, key: RedisArgument, items: RedisVariadicArgument) => import("@redis/client/dist/lib/RESP/types").CommandArguments;
|
|
7
|
+
readonly transformReply: {
|
|
8
|
+
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
|
|
9
|
+
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
|
|
4
|
+
const generic_transformers_2 = require("@redis/client/dist/lib/commands/generic-transformers");
|
|
5
|
+
exports.default = {
|
|
6
|
+
FIRST_KEY_INDEX: 1,
|
|
7
|
+
IS_READ_ONLY: true,
|
|
8
|
+
transformArguments(key, items) {
|
|
9
|
+
return (0, generic_transformers_1.pushVariadicArguments)(['BF.MEXISTS', key], items);
|
|
10
|
+
},
|
|
11
|
+
transformReply: generic_transformers_2.transformBooleanArrayReply
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RedisArgument, SimpleStringReply } from '@redis/client/dist/lib/RESP/types';
|
|
2
|
+
export interface BfReserveOptions {
|
|
3
|
+
EXPANSION?: number;
|
|
4
|
+
NONSCALING?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: {
|
|
7
|
+
readonly FIRST_KEY_INDEX: 1;
|
|
8
|
+
readonly IS_READ_ONLY: true;
|
|
9
|
+
readonly transformArguments: (this: void, key: RedisArgument, errorRate: number, capacity: number, options?: BfReserveOptions) => RedisArgument[];
|
|
10
|
+
readonly transformReply: () => SimpleStringReply<'OK'>;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = {
|
|
4
|
+
FIRST_KEY_INDEX: 1,
|
|
5
|
+
IS_READ_ONLY: true,
|
|
6
|
+
transformArguments(key, errorRate, capacity, options) {
|
|
7
|
+
const args = ['BF.RESERVE', key, errorRate.toString(), capacity.toString()];
|
|
8
|
+
if (options?.EXPANSION) {
|
|
9
|
+
args.push('EXPANSION', options.EXPANSION.toString());
|
|
10
|
+
}
|
|
11
|
+
if (options?.NONSCALING) {
|
|
12
|
+
args.push('NONSCALING');
|
|
13
|
+
}
|
|
14
|
+
return args;
|
|
15
|
+
},
|
|
16
|
+
transformReply: undefined
|
|
17
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RedisArgument, NumberReply, BlobStringReply } from '@redis/client/dist/lib/RESP/types';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
readonly FIRST_KEY_INDEX: 1;
|
|
4
|
+
readonly IS_READ_ONLY: true;
|
|
5
|
+
readonly transformArguments: (this: void, key: RedisArgument, iterator: number) => RedisArgument[];
|
|
6
|
+
readonly transformReply: (this: void, reply: [NumberReply<number>, BlobStringReply<string>]) => {
|
|
7
|
+
iterator: NumberReply<number>;
|
|
8
|
+
chunk: BlobStringReply<string>;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = {
|
|
4
|
+
FIRST_KEY_INDEX: 1,
|
|
5
|
+
IS_READ_ONLY: true,
|
|
6
|
+
transformArguments(key, iterator) {
|
|
7
|
+
return ['BF.SCANDUMP', key, iterator.toString()];
|
|
8
|
+
},
|
|
9
|
+
transformReply(reply) {
|
|
10
|
+
return {
|
|
11
|
+
iterator: reply[0],
|
|
12
|
+
chunk: reply[1]
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
};
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
readonly ADD: {
|
|
3
|
+
readonly FIRST_KEY_INDEX: 1;
|
|
4
|
+
readonly IS_READ_ONLY: false;
|
|
5
|
+
readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, item: import("@redis/client/dist/lib/RESP/types").RedisArgument) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
|
|
6
|
+
readonly transformReply: {
|
|
7
|
+
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
|
|
8
|
+
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
readonly add: {
|
|
12
|
+
readonly FIRST_KEY_INDEX: 1;
|
|
13
|
+
readonly IS_READ_ONLY: false;
|
|
14
|
+
readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, item: import("@redis/client/dist/lib/RESP/types").RedisArgument) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
|
|
15
|
+
readonly transformReply: {
|
|
16
|
+
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
|
|
17
|
+
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
readonly CARD: {
|
|
21
|
+
readonly FIRST_KEY_INDEX: 1;
|
|
22
|
+
readonly IS_READ_ONLY: true;
|
|
23
|
+
readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
|
|
24
|
+
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number>;
|
|
25
|
+
};
|
|
26
|
+
readonly card: {
|
|
27
|
+
readonly FIRST_KEY_INDEX: 1;
|
|
28
|
+
readonly IS_READ_ONLY: true;
|
|
29
|
+
readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
|
|
30
|
+
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number>;
|
|
31
|
+
};
|
|
32
|
+
readonly EXISTS: {
|
|
33
|
+
readonly FIRST_KEY_INDEX: 1;
|
|
34
|
+
readonly IS_READ_ONLY: true;
|
|
35
|
+
readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, item: import("@redis/client/dist/lib/RESP/types").RedisArgument) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
|
|
36
|
+
readonly transformReply: {
|
|
37
|
+
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
|
|
38
|
+
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
readonly exists: {
|
|
42
|
+
readonly FIRST_KEY_INDEX: 1;
|
|
43
|
+
readonly IS_READ_ONLY: true;
|
|
44
|
+
readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, item: import("@redis/client/dist/lib/RESP/types").RedisArgument) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
|
|
45
|
+
readonly transformReply: {
|
|
46
|
+
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
|
|
47
|
+
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
readonly INFO: {
|
|
51
|
+
readonly FIRST_KEY_INDEX: 1;
|
|
52
|
+
readonly IS_READ_ONLY: true;
|
|
53
|
+
readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
|
|
54
|
+
readonly transformReply: () => any;
|
|
55
|
+
};
|
|
56
|
+
readonly info: {
|
|
57
|
+
readonly FIRST_KEY_INDEX: 1;
|
|
58
|
+
readonly IS_READ_ONLY: true;
|
|
59
|
+
readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
|
|
60
|
+
readonly transformReply: () => any;
|
|
61
|
+
};
|
|
62
|
+
readonly INSERT: {
|
|
63
|
+
readonly FIRST_KEY_INDEX: 1;
|
|
64
|
+
readonly IS_READ_ONLY: false;
|
|
65
|
+
readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, items: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument, options?: import("./INSERT").BfInsertOptions | undefined) => import("@redis/client/dist/lib/RESP/types").CommandArguments;
|
|
66
|
+
readonly transformReply: {
|
|
67
|
+
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
|
|
68
|
+
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
readonly insert: {
|
|
72
|
+
readonly FIRST_KEY_INDEX: 1;
|
|
73
|
+
readonly IS_READ_ONLY: false;
|
|
74
|
+
readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, items: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument, options?: import("./INSERT").BfInsertOptions | undefined) => import("@redis/client/dist/lib/RESP/types").CommandArguments;
|
|
75
|
+
readonly transformReply: {
|
|
76
|
+
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
|
|
77
|
+
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
readonly LOADCHUNK: {
|
|
81
|
+
readonly FIRST_KEY_INDEX: 1;
|
|
82
|
+
readonly IS_READ_ONLY: false;
|
|
83
|
+
readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, iterator: number, chunk: import("@redis/client/dist/lib/RESP/types").RedisArgument) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
|
|
84
|
+
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
|
|
85
|
+
};
|
|
86
|
+
readonly loadChunk: {
|
|
87
|
+
readonly FIRST_KEY_INDEX: 1;
|
|
88
|
+
readonly IS_READ_ONLY: false;
|
|
89
|
+
readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, iterator: number, chunk: import("@redis/client/dist/lib/RESP/types").RedisArgument) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
|
|
90
|
+
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
|
|
91
|
+
};
|
|
92
|
+
readonly MADD: {
|
|
93
|
+
readonly FIRST_KEY_INDEX: 1;
|
|
94
|
+
readonly IS_READ_ONLY: false;
|
|
95
|
+
readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, items: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument) => import("@redis/client/dist/lib/RESP/types").CommandArguments;
|
|
96
|
+
readonly transformReply: {
|
|
97
|
+
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
|
|
98
|
+
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
readonly mAdd: {
|
|
102
|
+
readonly FIRST_KEY_INDEX: 1;
|
|
103
|
+
readonly IS_READ_ONLY: false;
|
|
104
|
+
readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, items: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument) => import("@redis/client/dist/lib/RESP/types").CommandArguments;
|
|
105
|
+
readonly transformReply: {
|
|
106
|
+
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
|
|
107
|
+
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
readonly MEXISTS: {
|
|
111
|
+
readonly FIRST_KEY_INDEX: 1;
|
|
112
|
+
readonly IS_READ_ONLY: true;
|
|
113
|
+
readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, items: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument) => import("@redis/client/dist/lib/RESP/types").CommandArguments;
|
|
114
|
+
readonly transformReply: {
|
|
115
|
+
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
|
|
116
|
+
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
readonly mExists: {
|
|
120
|
+
readonly FIRST_KEY_INDEX: 1;
|
|
121
|
+
readonly IS_READ_ONLY: true;
|
|
122
|
+
readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, items: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument) => import("@redis/client/dist/lib/RESP/types").CommandArguments;
|
|
123
|
+
readonly transformReply: {
|
|
124
|
+
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
|
|
125
|
+
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
readonly RESERVE: {
|
|
129
|
+
readonly FIRST_KEY_INDEX: 1;
|
|
130
|
+
readonly IS_READ_ONLY: true;
|
|
131
|
+
readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, errorRate: number, capacity: number, options?: import("./RESERVE").BfReserveOptions | undefined) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
|
|
132
|
+
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
|
|
133
|
+
};
|
|
134
|
+
readonly reserve: {
|
|
135
|
+
readonly FIRST_KEY_INDEX: 1;
|
|
136
|
+
readonly IS_READ_ONLY: true;
|
|
137
|
+
readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, errorRate: number, capacity: number, options?: import("./RESERVE").BfReserveOptions | undefined) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
|
|
138
|
+
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
|
|
139
|
+
};
|
|
140
|
+
readonly SCANDUMP: {
|
|
141
|
+
readonly FIRST_KEY_INDEX: 1;
|
|
142
|
+
readonly IS_READ_ONLY: true;
|
|
143
|
+
readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, iterator: number) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
|
|
144
|
+
readonly transformReply: (this: void, reply: [import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>]) => {
|
|
145
|
+
iterator: import("@redis/client/dist/lib/RESP/types").NumberReply<number>;
|
|
146
|
+
chunk: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
readonly scanDump: {
|
|
150
|
+
readonly FIRST_KEY_INDEX: 1;
|
|
151
|
+
readonly IS_READ_ONLY: true;
|
|
152
|
+
readonly transformArguments: (this: void, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, iterator: number) => import("@redis/client/dist/lib/RESP/types").RedisArgument[];
|
|
153
|
+
readonly transformReply: (this: void, reply: [import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>]) => {
|
|
154
|
+
iterator: import("@redis/client/dist/lib/RESP/types").NumberReply<number>;
|
|
155
|
+
chunk: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
export default _default;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const ADD_1 = __importDefault(require("./ADD"));
|
|
7
|
+
const CARD_1 = __importDefault(require("./CARD"));
|
|
8
|
+
const EXISTS_1 = __importDefault(require("./EXISTS"));
|
|
9
|
+
const INFO_1 = __importDefault(require("./INFO"));
|
|
10
|
+
const INSERT_1 = __importDefault(require("./INSERT"));
|
|
11
|
+
const LOADCHUNK_1 = __importDefault(require("./LOADCHUNK"));
|
|
12
|
+
const MADD_1 = __importDefault(require("./MADD"));
|
|
13
|
+
const MEXISTS_1 = __importDefault(require("./MEXISTS"));
|
|
14
|
+
const RESERVE_1 = __importDefault(require("./RESERVE"));
|
|
15
|
+
const SCANDUMP_1 = __importDefault(require("./SCANDUMP"));
|
|
16
|
+
exports.default = {
|
|
17
|
+
ADD: ADD_1.default,
|
|
18
|
+
add: ADD_1.default,
|
|
19
|
+
CARD: CARD_1.default,
|
|
20
|
+
card: CARD_1.default,
|
|
21
|
+
EXISTS: EXISTS_1.default,
|
|
22
|
+
exists: EXISTS_1.default,
|
|
23
|
+
INFO: INFO_1.default,
|
|
24
|
+
info: INFO_1.default,
|
|
25
|
+
INSERT: INSERT_1.default,
|
|
26
|
+
insert: INSERT_1.default,
|
|
27
|
+
LOADCHUNK: LOADCHUNK_1.default,
|
|
28
|
+
loadChunk: LOADCHUNK_1.default,
|
|
29
|
+
MADD: MADD_1.default,
|
|
30
|
+
mAdd: MADD_1.default,
|
|
31
|
+
MEXISTS: MEXISTS_1.default,
|
|
32
|
+
mExists: MEXISTS_1.default,
|
|
33
|
+
RESERVE: RESERVE_1.default,
|
|
34
|
+
reserve: RESERVE_1.default,
|
|
35
|
+
SCANDUMP: SCANDUMP_1.default,
|
|
36
|
+
scanDump: SCANDUMP_1.default
|
|
37
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RedisArgument, ArrayReply, NumberReply } from '@redis/client/dist/lib/RESP/types';
|
|
2
|
+
export interface BfIncrByItem {
|
|
3
|
+
item: RedisArgument;
|
|
4
|
+
incrementBy: number;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: {
|
|
7
|
+
readonly FIRST_KEY_INDEX: 1;
|
|
8
|
+
readonly IS_READ_ONLY: false;
|
|
9
|
+
readonly transformArguments: (this: void, key: RedisArgument, items: BfIncrByItem | Array<BfIncrByItem>) => RedisArgument[];
|
|
10
|
+
readonly transformReply: () => ArrayReply<NumberReply>;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = {
|
|
4
|
+
FIRST_KEY_INDEX: 1,
|
|
5
|
+
IS_READ_ONLY: false,
|
|
6
|
+
transformArguments(key, items) {
|
|
7
|
+
const args = ['CMS.INCRBY', key];
|
|
8
|
+
if (Array.isArray(items)) {
|
|
9
|
+
for (const item of items) {
|
|
10
|
+
pushIncrByItem(args, item);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
pushIncrByItem(args, items);
|
|
15
|
+
}
|
|
16
|
+
return args;
|
|
17
|
+
},
|
|
18
|
+
transformReply: undefined
|
|
19
|
+
};
|
|
20
|
+
function pushIncrByItem(args, { item, incrementBy }) {
|
|
21
|
+
args.push(item, incrementBy.toString());
|
|
22
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { RedisArgument, TuplesToMapReply, BlobStringReply, NumberReply } from '@redis/client/dist/lib/RESP/types';
|
|
2
|
+
export type BfInfoReply = TuplesToMapReply<[
|
|
3
|
+
[
|
|
4
|
+
BlobStringReply<'width'>,
|
|
5
|
+
NumberReply
|
|
6
|
+
],
|
|
7
|
+
[
|
|
8
|
+
BlobStringReply<'depth'>,
|
|
9
|
+
NumberReply
|
|
10
|
+
],
|
|
11
|
+
[
|
|
12
|
+
BlobStringReply<'count'>,
|
|
13
|
+
NumberReply
|
|
14
|
+
]
|
|
15
|
+
]>;
|
|
16
|
+
declare const _default: {
|
|
17
|
+
readonly FIRST_KEY_INDEX: 1;
|
|
18
|
+
readonly IS_READ_ONLY: true;
|
|
19
|
+
readonly transformArguments: (this: void, key: RedisArgument) => RedisArgument[];
|
|
20
|
+
readonly transformReply: {
|
|
21
|
+
readonly 2: (reply: [BlobStringReply<"width">, NumberReply<number>, BlobStringReply<"depth">, NumberReply<number>, BlobStringReply<"count">, NumberReply<number>]) => {
|
|
22
|
+
width: NumberReply<number>;
|
|
23
|
+
depth: NumberReply<number>;
|
|
24
|
+
count: NumberReply<number>;
|
|
25
|
+
};
|
|
26
|
+
readonly 3: () => BfInfoReply;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = {
|
|
4
|
+
FIRST_KEY_INDEX: 1,
|
|
5
|
+
IS_READ_ONLY: true,
|
|
6
|
+
transformArguments(key) {
|
|
7
|
+
return ['CMS.INFO', key];
|
|
8
|
+
},
|
|
9
|
+
transformReply: {
|
|
10
|
+
2: (reply) => ({
|
|
11
|
+
width: reply[1],
|
|
12
|
+
depth: reply[3],
|
|
13
|
+
count: reply[5]
|
|
14
|
+
}),
|
|
15
|
+
3: undefined
|
|
16
|
+
}
|
|
17
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RedisArgument, SimpleStringReply } from '@redis/client/dist/lib/RESP/types';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
readonly FIRST_KEY_INDEX: 1;
|
|
4
|
+
readonly IS_READ_ONLY: false;
|
|
5
|
+
readonly transformArguments: (this: void, key: RedisArgument, width: number, depth: number) => RedisArgument[];
|
|
6
|
+
readonly transformReply: () => SimpleStringReply<'OK'>;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = {
|
|
4
|
+
FIRST_KEY_INDEX: 1,
|
|
5
|
+
IS_READ_ONLY: false,
|
|
6
|
+
transformArguments(key, width, depth) {
|
|
7
|
+
return ['CMS.INITBYDIM', key, width.toString(), depth.toString()];
|
|
8
|
+
},
|
|
9
|
+
transformReply: undefined
|
|
10
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RedisArgument, SimpleStringReply } from '@redis/client/dist/lib/RESP/types';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
readonly FIRST_KEY_INDEX: 1;
|
|
4
|
+
readonly IS_READ_ONLY: false;
|
|
5
|
+
readonly transformArguments: (this: void, key: RedisArgument, error: number, probability: number) => RedisArgument[];
|
|
6
|
+
readonly transformReply: () => SimpleStringReply<'OK'>;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = {
|
|
4
|
+
FIRST_KEY_INDEX: 1,
|
|
5
|
+
IS_READ_ONLY: false,
|
|
6
|
+
transformArguments(key, error, probability) {
|
|
7
|
+
return ['CMS.INITBYPROB', key, error.toString(), probability.toString()];
|
|
8
|
+
},
|
|
9
|
+
transformReply: undefined
|
|
10
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RedisArgument, SimpleStringReply } from '@redis/client/dist/lib/RESP/types';
|
|
2
|
+
interface BfMergeSketch {
|
|
3
|
+
name: RedisArgument;
|
|
4
|
+
weight: number;
|
|
5
|
+
}
|
|
6
|
+
export type BfMergeSketches = Array<RedisArgument> | Array<BfMergeSketch>;
|
|
7
|
+
declare const _default: {
|
|
8
|
+
readonly FIRST_KEY_INDEX: 1;
|
|
9
|
+
readonly IS_READ_ONLY: false;
|
|
10
|
+
readonly transformArguments: (this: void, destination: RedisArgument, source: BfMergeSketches) => RedisArgument[];
|
|
11
|
+
readonly transformReply: () => SimpleStringReply<'OK'>;
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|