feat: Passwordless cross-device authentication

- Arkitektur: docs/auth/passwordless-architecture.md
- Backend: iom/quixzoom-auth-service/ (FastAPI + Redis)
- Webb: quixzoom-market-pages/se/login/ (QR-kod + polling)
- App: iom/quixzoom-app/src/features/auth/ (push + deep links)

Flöde: QR-kod → app-godkännande → webb-inloggad
This commit is contained in:
Bernt
2026-07-07 07:11:50 +00:00
parent 4aa984ad74
commit 6989a98d75
61843 changed files with 5491611 additions and 872231 deletions
+17
View File
@@ -0,0 +1,17 @@
# @redis/bloom
This package provides support for the [RedisBloom](https://redis.io/docs/data-types/probabilistic/) module, which adds additional probabilistic data structures to Redis.
Should be used with [`redis`/`@redis/client`](https://github.com/redis/node-redis).
:warning: To use these extra commands, your Redis server must have the RedisBloom module installed.
RedisBloom provides the following probabilistic data structures:
* Bloom Filter: for checking set membership with a high degree of certainty.
* Cuckoo Filter: for checking set membership with a high degree of certainty.
* T-Digest: for estimating the quantiles of a stream of data.
* Top-K: Maintain a list of k most frequently seen items.
* Count-Min Sketch: Determine the frequency of events in a stream.
For some examples, see [`bloom-filter.js`](https://github.com/redis/node-redis/tree/master/examples/bloom-filter.js), [`cuckoo-filter.js`](https://github.com/redis/node-redis/tree/master/examples/cuckoo-filter.js), [`count-min-sketch.js`](https://github.com/redis/node-redis/tree/master/examples/count-min-sketch.js) and [`topk.js`](https://github.com/redis/node-redis/tree/master/examples/topk.js) in the [examples folder](https://github.com/redis/node-redis/tree/master/examples).
@@ -0,0 +1,12 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument } from '@redis/client/dist/lib/RESP/types';
declare const _default: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, item: RedisArgument) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
};
};
export default _default;
//# sourceMappingURL=ADD.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"ADD.d.ts","sourceRoot":"","sources":["../../../../lib/commands/bloom/ADD.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAW,MAAM,mCAAmC,CAAC;;;gDAKpD,aAAa,OAAO,aAAa,QAAQ,aAAa;;;;;;AAF7E,wBAQ6B"}
@@ -0,0 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
exports.default = {
IS_READ_ONLY: false,
parseCommand(parser, key, item) {
parser.push('BF.ADD');
parser.pushKey(key);
parser.push(item);
},
transformReply: generic_transformers_1.transformBooleanReply
};
//# sourceMappingURL=ADD.js.map
@@ -0,0 +1 @@
{"version":3,"file":"ADD.js","sourceRoot":"","sources":["../../../../lib/commands/bloom/ADD.ts"],"names":[],"mappings":";;AAEA,+FAA6F;AAE7F,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,IAAmB;QACzE,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACtB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC;IACD,cAAc,EAAE,4CAAqB;CACX,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { RedisArgument, Command } from '@redis/client/dist/lib/RESP/types';\nimport { transformBooleanReply } from '@redis/client/dist/lib/commands/generic-transformers';\n\nexport default {\n IS_READ_ONLY: false,\n parseCommand(parser: CommandParser, key: RedisArgument, item: RedisArgument) {\n parser.push('BF.ADD');\n parser.pushKey(key);\n parser.push(item);\n },\n transformReply: transformBooleanReply\n} as const satisfies Command;\n"]}
@@ -0,0 +1,9 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument, NumberReply } from '@redis/client/dist/lib/RESP/types';
declare const _default: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument) => void;
readonly transformReply: () => NumberReply;
};
export default _default;
//# sourceMappingURL=CARD.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"CARD.d.ts","sourceRoot":"","sources":["../../../../lib/commands/bloom/CARD.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAW,MAAM,mCAAmC,CAAC;;;gDAIjE,aAAa,OAAO,aAAa;mCAIR,WAAW;;AAN3D,wBAO6B"}
@@ -0,0 +1,11 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
IS_READ_ONLY: true,
parseCommand(parser, key) {
parser.push('BF.CARD');
parser.pushKey(key);
},
transformReply: undefined
};
//# sourceMappingURL=CARD.js.map
@@ -0,0 +1 @@
{"version":3,"file":"CARD.js","sourceRoot":"","sources":["../../../../lib/commands/bloom/CARD.ts"],"names":[],"mappings":";;AAGA,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,SAAyC;CAC/B,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { RedisArgument, NumberReply, Command } from '@redis/client/dist/lib/RESP/types';\n\nexport default {\n IS_READ_ONLY: true,\n parseCommand(parser: CommandParser, key: RedisArgument) {\n parser.push('BF.CARD');\n parser.pushKey(key);\n },\n transformReply: undefined as unknown as () => NumberReply\n} as const satisfies Command;\n"]}
@@ -0,0 +1,12 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument } from '@redis/client/dist/lib/RESP/types';
declare const _default: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, item: RedisArgument) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
};
};
export default _default;
//# sourceMappingURL=EXISTS.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"EXISTS.d.ts","sourceRoot":"","sources":["../../../../lib/commands/bloom/EXISTS.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAW,MAAM,mCAAmC,CAAC;;;gDAKpD,aAAa,OAAO,aAAa,QAAQ,aAAa;;;;;;AAF7E,wBAQ6B"}
@@ -0,0 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
exports.default = {
IS_READ_ONLY: true,
parseCommand(parser, key, item) {
parser.push('BF.EXISTS');
parser.pushKey(key);
parser.push(item);
},
transformReply: generic_transformers_1.transformBooleanReply
};
//# sourceMappingURL=EXISTS.js.map
@@ -0,0 +1 @@
{"version":3,"file":"EXISTS.js","sourceRoot":"","sources":["../../../../lib/commands/bloom/EXISTS.ts"],"names":[],"mappings":";;AAEA,+FAA6F;AAE7F,kBAAe;IACb,YAAY,EAAE,IAAI;IAClB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,IAAmB;QACzE,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACzB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC;IACD,cAAc,EAAE,4CAAqB;CACX,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { RedisArgument, Command } from '@redis/client/dist/lib/RESP/types';\nimport { transformBooleanReply } from '@redis/client/dist/lib/commands/generic-transformers';\n\nexport default {\n IS_READ_ONLY: true,\n parseCommand(parser: CommandParser, key: RedisArgument, item: RedisArgument) {\n parser.push('BF.EXISTS');\n parser.pushKey(key);\n parser.push(item);\n },\n transformReply: transformBooleanReply\n} as const satisfies Command;\n"]}
@@ -0,0 +1,34 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument, NullReply, NumberReply, TuplesToMapReply, SimpleStringReply, TypeMapping } from '@redis/client/dist/lib/RESP/types';
export type BfInfoReplyMap = TuplesToMapReply<[
[
SimpleStringReply<'Capacity'>,
NumberReply
],
[
SimpleStringReply<'Size'>,
NumberReply
],
[
SimpleStringReply<'Number of filters'>,
NumberReply
],
[
SimpleStringReply<'Number of items inserted'>,
NumberReply
],
[
SimpleStringReply<'Expansion rate'>,
NullReply | NumberReply
]
]>;
declare const _default: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument) => void;
readonly transformReply: {
readonly 2: (this: void, reply: [SimpleStringReply<"Capacity">, NumberReply<number>, SimpleStringReply<"Size">, NumberReply<number>, SimpleStringReply<"Number of filters">, NumberReply<number>, SimpleStringReply<"Number of items inserted">, NumberReply<number>, SimpleStringReply<"Expansion rate">, NullReply | NumberReply<number>], _: any, typeMapping?: TypeMapping) => BfInfoReplyMap;
readonly 3: () => BfInfoReplyMap;
};
};
export default _default;
//# sourceMappingURL=INFO.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"INFO.d.ts","sourceRoot":"","sources":["../../../../lib/commands/bloom/INFO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAwB,SAAS,EAAE,WAAW,EAAE,gBAAgB,EAAc,iBAAiB,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAG9K,MAAM,MAAM,cAAc,GAAG,gBAAgB,CAAC;IAC5C;QAAC,iBAAiB,CAAC,UAAU,CAAC;QAAE,WAAW;KAAC;IAC5C;QAAC,iBAAiB,CAAC,MAAM,CAAC;QAAE,WAAW;KAAC;IACxC;QAAC,iBAAiB,CAAC,mBAAmB,CAAC;QAAE,WAAW;KAAC;IACrD;QAAC,iBAAiB,CAAC,0BAA0B,CAAC;QAAE,WAAW;KAAC;IAC5D;QAAC,iBAAiB,CAAC,gBAAgB,CAAC;QAAE,SAAS,GAAG,WAAW;KAAC;CAC/D,CAAC,CAAC;;;gDAIoB,aAAa,OAAO,aAAa;;2WAKiB,WAAW;;;;AAPpF,wBAY6B"}
@@ -0,0 +1,17 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const helpers_1 = require("./helpers");
exports.default = {
IS_READ_ONLY: true,
parseCommand(parser, key) {
parser.push('BF.INFO');
parser.pushKey(key);
},
transformReply: {
2: (reply, _, typeMapping) => {
return (0, helpers_1.transformInfoV2Reply)(reply, typeMapping);
},
3: undefined
}
};
//# sourceMappingURL=INFO.js.map
@@ -0,0 +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","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { RedisArgument, Command, UnwrapReply, NullReply, NumberReply, TuplesToMapReply, Resp2Reply, SimpleStringReply, TypeMapping } from '@redis/client/dist/lib/RESP/types';\nimport { transformInfoV2Reply } from './helpers';\n\nexport type BfInfoReplyMap = TuplesToMapReply<[\n [SimpleStringReply<'Capacity'>, NumberReply],\n [SimpleStringReply<'Size'>, NumberReply],\n [SimpleStringReply<'Number of filters'>, NumberReply],\n [SimpleStringReply<'Number of items inserted'>, NumberReply],\n [SimpleStringReply<'Expansion rate'>, NullReply | NumberReply] \n]>;\n\nexport default {\n IS_READ_ONLY: true,\n parseCommand(parser: CommandParser, key: RedisArgument) {\n parser.push('BF.INFO');\n parser.pushKey(key);\n },\n transformReply: {\n 2: (reply: UnwrapReply<Resp2Reply<BfInfoReplyMap>>, _, typeMapping?: TypeMapping): BfInfoReplyMap => {\n return transformInfoV2Reply<BfInfoReplyMap>(reply, typeMapping);\n },\n 3: undefined as unknown as () => BfInfoReplyMap\n }\n} as const satisfies Command;\n"]}
@@ -0,0 +1,20 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument } from '@redis/client/dist/lib/RESP/types';
import { RedisVariadicArgument } from '@redis/client/dist/lib/commands/generic-transformers';
export interface BfInsertOptions {
CAPACITY?: number;
ERROR?: number;
EXPANSION?: number;
NOCREATE?: boolean;
NONSCALING?: boolean;
}
declare const _default: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, items: RedisVariadicArgument, options?: BfInsertOptions) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
};
};
export default _default;
//# sourceMappingURL=INSERT.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"INSERT.d.ts","sourceRoot":"","sources":["../../../../lib/commands/bloom/INSERT.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAW,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,sDAAsD,CAAC;AAG7F,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;;;gDAKW,aAAa,OAChB,aAAa,SACX,qBAAqB,YAClB,eAAe;;;;;;AAN7B,wBAmC6B"}
@@ -0,0 +1,29 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
exports.default = {
IS_READ_ONLY: false,
parseCommand(parser, key, items, options) {
parser.push('BF.INSERT');
parser.pushKey(key);
if (options?.CAPACITY !== undefined) {
parser.push('CAPACITY', options.CAPACITY.toString());
}
if (options?.ERROR !== undefined) {
parser.push('ERROR', options.ERROR.toString());
}
if (options?.EXPANSION !== undefined) {
parser.push('EXPANSION', options.EXPANSION.toString());
}
if (options?.NOCREATE) {
parser.push('NOCREATE');
}
if (options?.NONSCALING) {
parser.push('NONSCALING');
}
parser.push('ITEMS');
parser.pushVariadic(items);
},
transformReply: generic_transformers_1.transformBooleanArrayReply
};
//# sourceMappingURL=INSERT.js.map
@@ -0,0 +1 @@
{"version":3,"file":"INSERT.js","sourceRoot":"","sources":["../../../../lib/commands/bloom/INSERT.ts"],"names":[],"mappings":";;AAGA,+FAAkG;AAUlG,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CACV,MAAqB,EACrB,GAAkB,EAClB,KAA4B,EAC5B,OAAyB;QAEzB,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACzB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAEpB,IAAI,OAAO,EAAE,QAAQ,KAAK,SAAS,EAAE,CAAC;YACpC,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC;QACvD,CAAC;QAED,IAAI,OAAO,EAAE,KAAK,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;QACjD,CAAC;QAED,IAAI,OAAO,EAAE,SAAS,KAAK,SAAS,EAAE,CAAC;YACrC,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC,CAAC;QACzD,CAAC;QAED,IAAI,OAAO,EAAE,QAAQ,EAAE,CAAC;YACtB,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC1B,CAAC;QAED,IAAI,OAAO,EAAE,UAAU,EAAE,CAAC;YACxB,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC5B,CAAC;QAED,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACrB,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;IACD,cAAc,EAAE,iDAA0B;CAChB,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { RedisArgument, Command } from '@redis/client/dist/lib/RESP/types';\nimport { RedisVariadicArgument } from '@redis/client/dist/lib/commands/generic-transformers';\nimport { transformBooleanArrayReply } from '@redis/client/dist/lib/commands/generic-transformers';\n\nexport interface BfInsertOptions {\n CAPACITY?: number;\n ERROR?: number;\n EXPANSION?: number;\n NOCREATE?: boolean;\n NONSCALING?: boolean;\n}\n\nexport default {\n IS_READ_ONLY: false,\n parseCommand(\n parser: CommandParser,\n key: RedisArgument,\n items: RedisVariadicArgument,\n options?: BfInsertOptions\n ) {\n parser.push('BF.INSERT');\n parser.pushKey(key);\n\n if (options?.CAPACITY !== undefined) {\n parser.push('CAPACITY', options.CAPACITY.toString());\n }\n\n if (options?.ERROR !== undefined) {\n parser.push('ERROR', options.ERROR.toString());\n }\n\n if (options?.EXPANSION !== undefined) {\n parser.push('EXPANSION', options.EXPANSION.toString());\n }\n\n if (options?.NOCREATE) {\n parser.push('NOCREATE');\n }\n\n if (options?.NONSCALING) {\n parser.push('NONSCALING');\n }\n\n parser.push('ITEMS');\n parser.pushVariadic(items);\n },\n transformReply: transformBooleanArrayReply\n} as const satisfies Command;\n"]}
@@ -0,0 +1,9 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument, SimpleStringReply } from '@redis/client/dist/lib/RESP/types';
declare const _default: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, iterator: number, chunk: RedisArgument) => void;
readonly transformReply: () => SimpleStringReply<'OK'>;
};
export default _default;
//# sourceMappingURL=LOADCHUNK.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"LOADCHUNK.d.ts","sourceRoot":"","sources":["../../../../lib/commands/bloom/LOADCHUNK.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAW,MAAM,mCAAmC,CAAC;;;gDAIvE,aAAa,OAAO,aAAa,YAAY,MAAM,SAAS,aAAa;mCAKhD,kBAAkB,IAAI,CAAC;;AAPvE,wBAQ6B"}
@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
IS_READ_ONLY: false,
parseCommand(parser, key, iterator, chunk) {
parser.push('BF.LOADCHUNK');
parser.pushKey(key);
parser.push(iterator.toString(), chunk);
},
transformReply: undefined
};
//# sourceMappingURL=LOADCHUNK.js.map
@@ -0,0 +1 @@
{"version":3,"file":"LOADCHUNK.js","sourceRoot":"","sources":["../../../../lib/commands/bloom/LOADCHUNK.ts"],"names":[],"mappings":";;AAGA,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,QAAgB,EAAE,KAAoB;QAC5F,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAC5B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,EAAE,KAAK,CAAC,CAAC;IAC1C,CAAC;IACD,cAAc,EAAE,SAAqD;CAC3C,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { RedisArgument, SimpleStringReply, Command } from '@redis/client/dist/lib/RESP/types';\n\nexport default {\n IS_READ_ONLY: false,\n parseCommand(parser: CommandParser, key: RedisArgument, iterator: number, chunk: RedisArgument) {\n parser.push('BF.LOADCHUNK');\n parser.pushKey(key);\n parser.push(iterator.toString(), chunk);\n },\n transformReply: undefined as unknown as () => SimpleStringReply<'OK'>\n} as const satisfies Command;\n"]}
@@ -0,0 +1,13 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument } from '@redis/client/dist/lib/RESP/types';
import { RedisVariadicArgument } from '@redis/client/dist/lib/commands/generic-transformers';
declare const _default: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, items: RedisVariadicArgument) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
};
};
export default _default;
//# sourceMappingURL=MADD.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"MADD.d.ts","sourceRoot":"","sources":["../../../../lib/commands/bloom/MADD.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAW,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,sDAAsD,CAAC;;;gDAKtE,aAAa,OAAO,aAAa,SAAS,qBAAqB;;;;;;AAFtF,wBAQ6B"}
@@ -0,0 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
exports.default = {
IS_READ_ONLY: false,
parseCommand(parser, key, items) {
parser.push('BF.MADD');
parser.pushKey(key);
parser.pushVariadic(items);
},
transformReply: generic_transformers_1.transformBooleanArrayReply
};
//# sourceMappingURL=MADD.js.map
@@ -0,0 +1 @@
{"version":3,"file":"MADD.js","sourceRoot":"","sources":["../../../../lib/commands/bloom/MADD.ts"],"names":[],"mappings":";;AAGA,+FAAkG;AAElG,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,KAA4B;QAClF,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACvB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;IACD,cAAc,EAAE,iDAA0B;CAChB,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { RedisArgument, Command } from '@redis/client/dist/lib/RESP/types';\nimport { RedisVariadicArgument } from '@redis/client/dist/lib/commands/generic-transformers';\nimport { transformBooleanArrayReply } from '@redis/client/dist/lib/commands/generic-transformers';\n\nexport default {\n IS_READ_ONLY: false,\n parseCommand(parser: CommandParser, key: RedisArgument, items: RedisVariadicArgument) {\n parser.push('BF.MADD');\n parser.pushKey(key);\n parser.pushVariadic(items);\n },\n transformReply: transformBooleanArrayReply\n} as const satisfies Command;\n"]}
@@ -0,0 +1,13 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument } from '@redis/client/dist/lib/RESP/types';
import { RedisVariadicArgument } from '@redis/client/dist/lib/commands/generic-transformers';
declare const _default: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, items: RedisVariadicArgument) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
};
};
export default _default;
//# sourceMappingURL=MEXISTS.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"MEXISTS.d.ts","sourceRoot":"","sources":["../../../../lib/commands/bloom/MEXISTS.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAW,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,sDAAsD,CAAC;;;gDAKtE,aAAa,OAAO,aAAa,SAAS,qBAAqB;;;;;;AAFtF,wBAQ6B"}
@@ -0,0 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
exports.default = {
IS_READ_ONLY: true,
parseCommand(parser, key, items) {
parser.push('BF.MEXISTS');
parser.pushKey(key);
parser.pushVariadic(items);
},
transformReply: generic_transformers_1.transformBooleanArrayReply
};
//# sourceMappingURL=MEXISTS.js.map
@@ -0,0 +1 @@
{"version":3,"file":"MEXISTS.js","sourceRoot":"","sources":["../../../../lib/commands/bloom/MEXISTS.ts"],"names":[],"mappings":";;AAGA,+FAAkG;AAElG,kBAAe;IACb,YAAY,EAAE,IAAI;IAClB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,KAA4B;QAClF,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC1B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;IACD,cAAc,EAAE,iDAA0B;CAChB,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { RedisArgument, Command } from '@redis/client/dist/lib/RESP/types';\nimport { RedisVariadicArgument } from '@redis/client/dist/lib/commands/generic-transformers';\nimport { transformBooleanArrayReply } from '@redis/client/dist/lib/commands/generic-transformers';\n\nexport default {\n IS_READ_ONLY: true,\n parseCommand(parser: CommandParser, key: RedisArgument, items: RedisVariadicArgument) {\n parser.push('BF.MEXISTS');\n parser.pushKey(key);\n parser.pushVariadic(items);\n },\n transformReply: transformBooleanArrayReply\n} as const satisfies Command;\n"]}
@@ -0,0 +1,13 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument, SimpleStringReply } from '@redis/client/dist/lib/RESP/types';
export interface BfReserveOptions {
EXPANSION?: number;
NONSCALING?: boolean;
}
declare const _default: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, errorRate: number, capacity: number, options?: BfReserveOptions) => void;
readonly transformReply: () => SimpleStringReply<'OK'>;
};
export default _default;
//# sourceMappingURL=RESERVE.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"RESERVE.d.ts","sourceRoot":"","sources":["../../../../lib/commands/bloom/RESERVE.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAW,MAAM,mCAAmC,CAAC;AAE9F,MAAM,WAAW,gBAAgB;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;;;gDAKW,aAAa,OAChB,aAAa,aACP,MAAM,YACP,MAAM,YACN,gBAAgB;mCAckB,kBAAkB,IAAI,CAAC;;AArBvE,wBAsB6B"}
@@ -0,0 +1,18 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
IS_READ_ONLY: true,
parseCommand(parser, key, errorRate, capacity, options) {
parser.push('BF.RESERVE');
parser.pushKey(key);
parser.push(errorRate.toString(), capacity.toString());
if (options?.EXPANSION) {
parser.push('EXPANSION', options.EXPANSION.toString());
}
if (options?.NONSCALING) {
parser.push('NONSCALING');
}
},
transformReply: undefined
};
//# sourceMappingURL=RESERVE.js.map
@@ -0,0 +1 @@
{"version":3,"file":"RESERVE.js","sourceRoot":"","sources":["../../../../lib/commands/bloom/RESERVE.ts"],"names":[],"mappings":";;AAQA,kBAAe;IACb,YAAY,EAAE,IAAI;IAClB,YAAY,CACV,MAAqB,EACrB,GAAkB,EAClB,SAAiB,EACjB,QAAgB,EAChB,OAA0B;QAE1B,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC1B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,EAAE,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC;QAEvD,IAAI,OAAO,EAAE,SAAS,EAAE,CAAC;YACrB,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC3D,CAAC;QAED,IAAI,OAAO,EAAE,UAAU,EAAE,CAAC;YACtB,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC9B,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAAqD;CAC3C,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { RedisArgument, SimpleStringReply, Command } from '@redis/client/dist/lib/RESP/types';\n\nexport interface BfReserveOptions {\n EXPANSION?: number;\n NONSCALING?: boolean;\n}\n\nexport default {\n IS_READ_ONLY: true,\n parseCommand(\n parser: CommandParser,\n key: RedisArgument,\n errorRate: number,\n capacity: number,\n options?: BfReserveOptions\n ) {\n parser.push('BF.RESERVE');\n parser.pushKey(key);\n parser.push(errorRate.toString(), capacity.toString());\n\n if (options?.EXPANSION) {\n parser.push('EXPANSION', options.EXPANSION.toString());\n }\n\n if (options?.NONSCALING) {\n parser.push('NONSCALING');\n }\n },\n transformReply: undefined as unknown as () => SimpleStringReply<'OK'>\n} as const satisfies Command;\n"]}
@@ -0,0 +1,12 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument, NumberReply, BlobStringReply } from '@redis/client/dist/lib/RESP/types';
declare const _default: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, iterator: number) => void;
readonly transformReply: (this: void, reply: [NumberReply<number>, BlobStringReply<string>]) => {
iterator: NumberReply<number>;
chunk: BlobStringReply<string>;
};
};
export default _default;
//# sourceMappingURL=SCANDUMP.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"SCANDUMP.d.ts","sourceRoot":"","sources":["../../../../lib/commands/bloom/SCANDUMP.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAe,WAAW,EAAE,eAAe,EAAwB,MAAM,mCAAmC,CAAC;;;gDAI5G,aAAa,OAAO,aAAa,YAAY,MAAM;;;;;;AAF1E,wBAa6B"}
@@ -0,0 +1,17 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
IS_READ_ONLY: true,
parseCommand(parser, key, iterator) {
parser.push('BF.SCANDUMP');
parser.pushKey(key);
parser.push(iterator.toString());
},
transformReply(reply) {
return {
iterator: reply[0],
chunk: reply[1]
};
}
};
//# sourceMappingURL=SCANDUMP.js.map
@@ -0,0 +1 @@
{"version":3,"file":"SCANDUMP.js","sourceRoot":"","sources":["../../../../lib/commands/bloom/SCANDUMP.ts"],"names":[],"mappings":";;AAGA,kBAAe;IACb,YAAY,EAAE,IAAI;IAClB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,QAAgB;QACtE,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC3B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC;IACnC,CAAC;IACD,cAAc,CAAC,KAA+D;QAC5E,OAAO;YACL,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;YAClB,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;SAChB,CAAC;IACJ,CAAC;CACyB,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { RedisArgument, TuplesReply, NumberReply, BlobStringReply, UnwrapReply, Command } from '@redis/client/dist/lib/RESP/types';\n\nexport default {\n IS_READ_ONLY: true,\n parseCommand(parser: CommandParser, key: RedisArgument, iterator: number) {\n parser.push('BF.SCANDUMP');\n parser.pushKey(key);\n parser.push(iterator.toString());\n },\n transformReply(reply: UnwrapReply<TuplesReply<[NumberReply, BlobStringReply]>>) {\n return {\n iterator: reply[0],\n chunk: reply[1]\n };\n }\n} as const satisfies Command;\n"]}
@@ -0,0 +1,3 @@
import { TypeMapping } from "@redis/client";
export declare function transformInfoV2Reply<T>(reply: Array<unknown>, typeMapping?: TypeMapping): T;
//# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +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,OAAO,CAAC,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,CAAC,CA2B3F"}
@@ -0,0 +1,29 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformInfoV2Reply = void 0;
const client_1 = require("@redis/client");
function transformInfoV2Reply(reply, typeMapping) {
const entries = reply;
const mapType = typeMapping ? typeMapping[client_1.RESP_TYPES.MAP] : undefined;
switch (mapType) {
case Array: {
return reply;
}
case Map: {
const ret = new Map();
for (let i = 0; i < entries.length; i += 2) {
ret.set(entries[i].toString(), entries[i + 1]);
}
return ret;
}
default: {
const ret = {};
for (let i = 0; i < entries.length; i += 2) {
ret[entries[i].toString()] = entries[i + 1];
}
return ret;
}
}
}
exports.transformInfoV2Reply = transformInfoV2Reply;
//# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../lib/commands/bloom/helpers.ts"],"names":[],"mappings":";;;AAAA,0CAAwD;AAExD,SAAgB,oBAAoB,CAAI,KAAqB,EAAE,WAAyB;IACtF,MAAM,OAAO,GAAG,KAAsC,CAAC;IACvD,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,EAAmB,CAAC;YAEvC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC3C,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;YACjD,CAAC;YAED,OAAO,GAAmB,CAAC;QAC7B,CAAC;QACD,OAAO,CAAC,CAAC,CAAC;YACR,MAAM,GAAG,GAA4B,EAAE,CAAC;YAExC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC3C,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;YAC9C,CAAC;YAED,OAAO,GAAmB,CAAC;QAC7B,CAAC;IACH,CAAC;AACH,CAAC;AA3BD,oDA2BC","sourcesContent":["import { RESP_TYPES, TypeMapping } from \"@redis/client\";\n\nexport function transformInfoV2Reply<T>(reply: Array<unknown>, typeMapping?: TypeMapping): T {\n const entries = reply as Array<{ toString(): string }>;\n const mapType = typeMapping ? typeMapping[RESP_TYPES.MAP] : undefined;\n\n switch (mapType) {\n case Array: {\n return reply as unknown as T;\n }\n case Map: {\n const ret = new Map<string, unknown>();\n\n for (let i = 0; i < entries.length; i += 2) {\n ret.set(entries[i].toString(), entries[i + 1]);\n }\n\n return ret as unknown as T;\n }\n default: {\n const ret: Record<string, unknown> = {};\n\n for (let i = 0; i < entries.length; i += 2) {\n ret[entries[i].toString()] = entries[i + 1];\n }\n\n return ret as unknown as T;\n }\n }\n}\n"]}
@@ -0,0 +1,271 @@
export * from './helpers';
declare const _default: {
/**
* Adds an item to a Bloom Filter
* @param key - The name of the Bloom filter
* @param item - The item to add to the filter
*/
readonly ADD: {
readonly IS_READ_ONLY: false;
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;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
};
};
/**
* Adds an item to a Bloom Filter
* @param key - The name of the Bloom filter
* @param item - The item to add to the filter
*/
readonly add: {
readonly IS_READ_ONLY: false;
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;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
};
};
/**
* Returns the cardinality (number of items) in a Bloom Filter
* @param key - The name of the Bloom filter to query
*/
readonly CARD: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number>;
};
/**
* Returns the cardinality (number of items) in a Bloom Filter
* @param key - The name of the Bloom filter to query
*/
readonly card: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number>;
};
/**
* Checks if an item exists in a Bloom Filter
* @param key - The name of the Bloom filter
* @param item - The item to check for existence
*/
readonly EXISTS: {
readonly IS_READ_ONLY: true;
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;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
};
};
/**
* Checks if an item exists in a Bloom Filter
* @param key - The name of the Bloom filter
* @param item - The item to check for existence
*/
readonly exists: {
readonly IS_READ_ONLY: true;
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;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
};
};
/**
* Returns information about a Bloom Filter, including capacity, size, number of filters, items inserted, and expansion rate
* @param key - The name of the Bloom filter to get information about
*/
readonly INFO: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument) => void;
readonly transformReply: {
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;
readonly 3: () => import("./INFO").BfInfoReplyMap;
};
};
/**
* Returns information about a Bloom Filter, including capacity, size, number of filters, items inserted, and expansion rate
* @param key - The name of the Bloom filter to get information about
*/
readonly info: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument) => void;
readonly transformReply: {
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;
readonly 3: () => import("./INFO").BfInfoReplyMap;
};
};
/**
* Adds one or more items to a Bloom Filter, creating it if it does not exist
* @param key - The name of the Bloom filter
* @param items - One or more items to add to the filter
* @param options - Optional parameters for filter creation
* @param options.CAPACITY - Desired capacity for a new filter
* @param options.ERROR - Desired error rate for a new filter
* @param options.EXPANSION - Expansion rate for a new filter
* @param options.NOCREATE - If true, prevents automatic filter creation
* @param options.NONSCALING - Prevents the filter from creating additional sub-filters
*/
readonly INSERT: {
readonly IS_READ_ONLY: false;
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;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
};
};
/**
* Adds one or more items to a Bloom Filter, creating it if it does not exist
* @param key - The name of the Bloom filter
* @param items - One or more items to add to the filter
* @param options - Optional parameters for filter creation
* @param options.CAPACITY - Desired capacity for a new filter
* @param options.ERROR - Desired error rate for a new filter
* @param options.EXPANSION - Expansion rate for a new filter
* @param options.NOCREATE - If true, prevents automatic filter creation
* @param options.NONSCALING - Prevents the filter from creating additional sub-filters
*/
readonly insert: {
readonly IS_READ_ONLY: false;
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;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
};
};
/**
* Restores a Bloom Filter chunk previously saved using SCANDUMP
* @param key - The name of the Bloom filter to restore
* @param iterator - Iterator value from the SCANDUMP command
* @param chunk - Data chunk from the SCANDUMP command
*/
readonly LOADCHUNK: {
readonly IS_READ_ONLY: false;
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;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
/**
* Restores a Bloom Filter chunk previously saved using SCANDUMP
* @param key - The name of the Bloom filter to restore
* @param iterator - Iterator value from the SCANDUMP command
* @param chunk - Data chunk from the SCANDUMP command
*/
readonly loadChunk: {
readonly IS_READ_ONLY: false;
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;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
/**
* Adds multiple items to a Bloom Filter in a single call
* @param key - The name of the Bloom filter
* @param items - One or more items to add to the filter
*/
readonly MADD: {
readonly IS_READ_ONLY: false;
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;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
};
};
/**
* Adds multiple items to a Bloom Filter in a single call
* @param key - The name of the Bloom filter
* @param items - One or more items to add to the filter
*/
readonly mAdd: {
readonly IS_READ_ONLY: false;
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;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
};
};
/**
* Checks if multiple items exist in a Bloom Filter in a single call
* @param key - The name of the Bloom filter
* @param items - One or more items to check for existence
*/
readonly MEXISTS: {
readonly IS_READ_ONLY: true;
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;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
};
};
/**
* Checks if multiple items exist in a Bloom Filter in a single call
* @param key - The name of the Bloom filter
* @param items - One or more items to check for existence
*/
readonly mExists: {
readonly IS_READ_ONLY: true;
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;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
};
};
/**
* Creates an empty Bloom Filter with a given desired error ratio and initial capacity
* @param key - The name of the Bloom filter to create
* @param errorRate - The desired probability for false positives (between 0 and 1)
* @param capacity - The number of entries intended to be added to the filter
* @param options - Optional parameters to tune the filter
* @param options.EXPANSION - Expansion rate for the filter
* @param options.NONSCALING - Prevents the filter from creating additional sub-filters
*/
readonly RESERVE: {
readonly IS_READ_ONLY: true;
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; /**
* Returns the cardinality (number of items) in a Bloom Filter
* @param key - The name of the Bloom filter to query
*/
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
/**
* Creates an empty Bloom Filter with a given desired error ratio and initial capacity
* @param key - The name of the Bloom filter to create
* @param errorRate - The desired probability for false positives (between 0 and 1)
* @param capacity - The number of entries intended to be added to the filter
* @param options - Optional parameters to tune the filter
* @param options.EXPANSION - Expansion rate for the filter
* @param options.NONSCALING - Prevents the filter from creating additional sub-filters
*/
readonly reserve: {
readonly IS_READ_ONLY: true;
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; /**
* Returns the cardinality (number of items) in a Bloom Filter
* @param key - The name of the Bloom filter to query
*/
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
/**
* Begins an incremental save of a Bloom Filter. This is useful for large filters that can't be saved at once
* @param key - The name of the Bloom filter to save
* @param iterator - Iterator value; Start at 0, and use the iterator from the response for the next chunk
*/
readonly SCANDUMP: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, iterator: number) => void;
readonly transformReply: (this: void, reply: [import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>]) => {
iterator: import("@redis/client/dist/lib/RESP/types").NumberReply<number>;
chunk: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>;
};
};
/**
* Begins an incremental save of a Bloom Filter. This is useful for large filters that can't be saved at once
* @param key - The name of the Bloom filter to save
* @param iterator - Iterator value; Start at 0, and use the iterator from the response for the next chunk
*/
readonly scanDump: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, iterator: number) => void;
readonly transformReply: (this: void, reply: [import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>]) => {
iterator: import("@redis/client/dist/lib/RESP/types").NumberReply<number>;
chunk: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>;
};
};
};
export default _default;
//# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/commands/bloom/index.ts"],"names":[],"mappings":"AAaA,cAAc,WAAW,CAAC;;IAGxB;;;;OAIG;;;;;;;;;IAEH;;;;OAIG;;;;;;;;;IAEH;;;OAGG;;;;;;IAEH;;;OAGG;;;;;;IAEH;;;;OAIG;;;;;;;;;IAEH;;;;OAIG;;;;;;;;;IAEH;;;OAGG;;;;;;;;;IAEH;;;OAGG;;;;;;;;;IAEH;;;;;;;;;;OAUG;;;;;;;;;IAEH;;;;;;;;;;OAUG;;;;;;;;;IAEH;;;;;OAKG;;;;;;IAEH;;;;;OAKG;;;;;;IAEH;;;;OAIG;;;;;;;;;IAEH;;;;OAIG;;;;;;;;;IAEH;;;;OAIG;;;;;;;;;IAEH;;;;OAIG;;;;;;;;;IAEH;;;;;;;;OAQG;;;qQAtGH;;;WAGG;;;IAqGH;;;;;;;;OAQG;;;qQAhHH;;;WAGG;;;IA+GH;;;;OAIG;;;;;;;;;IAEH;;;;OAIG;;;;;;;;;;AAzIL,wBA2ImC"}
@@ -0,0 +1,171 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const ADD_1 = __importDefault(require("./ADD"));
const CARD_1 = __importDefault(require("./CARD"));
const EXISTS_1 = __importDefault(require("./EXISTS"));
const INFO_1 = __importDefault(require("./INFO"));
const INSERT_1 = __importDefault(require("./INSERT"));
const LOADCHUNK_1 = __importDefault(require("./LOADCHUNK"));
const MADD_1 = __importDefault(require("./MADD"));
const MEXISTS_1 = __importDefault(require("./MEXISTS"));
const RESERVE_1 = __importDefault(require("./RESERVE"));
const SCANDUMP_1 = __importDefault(require("./SCANDUMP"));
__exportStar(require("./helpers"), exports);
exports.default = {
/**
* Adds an item to a Bloom Filter
* @param key - The name of the Bloom filter
* @param item - The item to add to the filter
*/
ADD: ADD_1.default,
/**
* Adds an item to a Bloom Filter
* @param key - The name of the Bloom filter
* @param item - The item to add to the filter
*/
add: ADD_1.default,
/**
* Returns the cardinality (number of items) in a Bloom Filter
* @param key - The name of the Bloom filter to query
*/
CARD: CARD_1.default,
/**
* Returns the cardinality (number of items) in a Bloom Filter
* @param key - The name of the Bloom filter to query
*/
card: CARD_1.default,
/**
* Checks if an item exists in a Bloom Filter
* @param key - The name of the Bloom filter
* @param item - The item to check for existence
*/
EXISTS: EXISTS_1.default,
/**
* Checks if an item exists in a Bloom Filter
* @param key - The name of the Bloom filter
* @param item - The item to check for existence
*/
exists: EXISTS_1.default,
/**
* Returns information about a Bloom Filter, including capacity, size, number of filters, items inserted, and expansion rate
* @param key - The name of the Bloom filter to get information about
*/
INFO: INFO_1.default,
/**
* Returns information about a Bloom Filter, including capacity, size, number of filters, items inserted, and expansion rate
* @param key - The name of the Bloom filter to get information about
*/
info: INFO_1.default,
/**
* Adds one or more items to a Bloom Filter, creating it if it does not exist
* @param key - The name of the Bloom filter
* @param items - One or more items to add to the filter
* @param options - Optional parameters for filter creation
* @param options.CAPACITY - Desired capacity for a new filter
* @param options.ERROR - Desired error rate for a new filter
* @param options.EXPANSION - Expansion rate for a new filter
* @param options.NOCREATE - If true, prevents automatic filter creation
* @param options.NONSCALING - Prevents the filter from creating additional sub-filters
*/
INSERT: INSERT_1.default,
/**
* Adds one or more items to a Bloom Filter, creating it if it does not exist
* @param key - The name of the Bloom filter
* @param items - One or more items to add to the filter
* @param options - Optional parameters for filter creation
* @param options.CAPACITY - Desired capacity for a new filter
* @param options.ERROR - Desired error rate for a new filter
* @param options.EXPANSION - Expansion rate for a new filter
* @param options.NOCREATE - If true, prevents automatic filter creation
* @param options.NONSCALING - Prevents the filter from creating additional sub-filters
*/
insert: INSERT_1.default,
/**
* Restores a Bloom Filter chunk previously saved using SCANDUMP
* @param key - The name of the Bloom filter to restore
* @param iterator - Iterator value from the SCANDUMP command
* @param chunk - Data chunk from the SCANDUMP command
*/
LOADCHUNK: LOADCHUNK_1.default,
/**
* Restores a Bloom Filter chunk previously saved using SCANDUMP
* @param key - The name of the Bloom filter to restore
* @param iterator - Iterator value from the SCANDUMP command
* @param chunk - Data chunk from the SCANDUMP command
*/
loadChunk: LOADCHUNK_1.default,
/**
* Adds multiple items to a Bloom Filter in a single call
* @param key - The name of the Bloom filter
* @param items - One or more items to add to the filter
*/
MADD: MADD_1.default,
/**
* Adds multiple items to a Bloom Filter in a single call
* @param key - The name of the Bloom filter
* @param items - One or more items to add to the filter
*/
mAdd: MADD_1.default,
/**
* Checks if multiple items exist in a Bloom Filter in a single call
* @param key - The name of the Bloom filter
* @param items - One or more items to check for existence
*/
MEXISTS: MEXISTS_1.default,
/**
* Checks if multiple items exist in a Bloom Filter in a single call
* @param key - The name of the Bloom filter
* @param items - One or more items to check for existence
*/
mExists: MEXISTS_1.default,
/**
* Creates an empty Bloom Filter with a given desired error ratio and initial capacity
* @param key - The name of the Bloom filter to create
* @param errorRate - The desired probability for false positives (between 0 and 1)
* @param capacity - The number of entries intended to be added to the filter
* @param options - Optional parameters to tune the filter
* @param options.EXPANSION - Expansion rate for the filter
* @param options.NONSCALING - Prevents the filter from creating additional sub-filters
*/
RESERVE: RESERVE_1.default,
/**
* Creates an empty Bloom Filter with a given desired error ratio and initial capacity
* @param key - The name of the Bloom filter to create
* @param errorRate - The desired probability for false positives (between 0 and 1)
* @param capacity - The number of entries intended to be added to the filter
* @param options - Optional parameters to tune the filter
* @param options.EXPANSION - Expansion rate for the filter
* @param options.NONSCALING - Prevents the filter from creating additional sub-filters
*/
reserve: RESERVE_1.default,
/**
* Begins an incremental save of a Bloom Filter. This is useful for large filters that can't be saved at once
* @param key - The name of the Bloom filter to save
* @param iterator - Iterator value; Start at 0, and use the iterator from the response for the next chunk
*/
SCANDUMP: SCANDUMP_1.default,
/**
* Begins an incremental save of a Bloom Filter. This is useful for large filters that can't be saved at once
* @param key - The name of the Bloom filter to save
* @param iterator - Iterator value; Start at 0, and use the iterator from the response for the next chunk
*/
scanDump: SCANDUMP_1.default
};
//# sourceMappingURL=index.js.map
File diff suppressed because one or more lines are too long
@@ -0,0 +1,13 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument, ArrayReply, NumberReply } from '@redis/client/dist/lib/RESP/types';
export interface BfIncrByItem {
item: RedisArgument;
incrementBy: number;
}
declare const _default: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, items: BfIncrByItem | Array<BfIncrByItem>) => void;
readonly transformReply: () => ArrayReply<NumberReply>;
};
export default _default;
//# sourceMappingURL=INCRBY.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"INCRBY.d.ts","sourceRoot":"","sources":["../../../../lib/commands/count-min-sketch/INCRBY.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAW,MAAM,mCAAmC,CAAC;AAEpG,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,aAAa,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB;;;gDAKW,aAAa,OAChB,aAAa,SACX,YAAY,GAAG,MAAM,YAAY,CAAC;mCAaG,WAAW,WAAW,CAAC;;AAlBvE,wBAmB6B"}
@@ -0,0 +1,22 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
IS_READ_ONLY: false,
parseCommand(parser, key, items) {
parser.push('CMS.INCRBY');
parser.pushKey(key);
if (Array.isArray(items)) {
for (const item of items) {
pushIncrByItem(parser, item);
}
}
else {
pushIncrByItem(parser, items);
}
},
transformReply: undefined
};
function pushIncrByItem(parser, { item, incrementBy }) {
parser.push(item, incrementBy.toString());
}
//# sourceMappingURL=INCRBY.js.map
@@ -0,0 +1 @@
{"version":3,"file":"INCRBY.js","sourceRoot":"","sources":["../../../../lib/commands/count-min-sketch/INCRBY.ts"],"names":[],"mappings":";;AAQA,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CACV,MAAqB,EACrB,GAAkB,EAClB,KAAyC;QAEzC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC1B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAEpB,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YACzB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;gBACzB,cAAc,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;YAC/B,CAAC;QACH,CAAC;aAAM,CAAC;YACN,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAChC,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAAqD;CAC3C,CAAC;AAE7B,SAAS,cAAc,CAAC,MAAqB,EAAE,EAAE,IAAI,EAAE,WAAW,EAAgB;IAChF,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;AAC5C,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { RedisArgument, ArrayReply, NumberReply, Command } from '@redis/client/dist/lib/RESP/types';\n\nexport interface BfIncrByItem {\n item: RedisArgument;\n incrementBy: number;\n}\n\nexport default {\n IS_READ_ONLY: false,\n parseCommand(\n parser: CommandParser,\n key: RedisArgument,\n items: BfIncrByItem | Array<BfIncrByItem>\n ) {\n parser.push('CMS.INCRBY');\n parser.pushKey(key);\n\n if (Array.isArray(items)) {\n for (const item of items) {\n pushIncrByItem(parser, item);\n }\n } else {\n pushIncrByItem(parser, items);\n }\n },\n transformReply: undefined as unknown as () => ArrayReply<NumberReply>\n} as const satisfies Command;\n\nfunction pushIncrByItem(parser: CommandParser, { item, incrementBy }: BfIncrByItem): void {\n parser.push(item, incrementBy.toString());\n}\n"]}
@@ -0,0 +1,31 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument, TuplesToMapReply, NumberReply, SimpleStringReply, TypeMapping } from '@redis/client/dist/lib/RESP/types';
export type CmsInfoReplyMap = TuplesToMapReply<[
[
SimpleStringReply<'width'>,
NumberReply
],
[
SimpleStringReply<'depth'>,
NumberReply
],
[
SimpleStringReply<'count'>,
NumberReply
]
]>;
export interface CmsInfoReply {
width: NumberReply;
depth: NumberReply;
count: NumberReply;
}
declare const _default: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument) => void;
readonly transformReply: {
readonly 2: (this: void, reply: [SimpleStringReply<"width">, NumberReply<number>, SimpleStringReply<"depth">, NumberReply<number>, SimpleStringReply<"count">, NumberReply<number>], _: any, typeMapping?: TypeMapping) => CmsInfoReply;
readonly 3: () => CmsInfoReply;
};
};
export default _default;
//# sourceMappingURL=INFO.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"INFO.d.ts","sourceRoot":"","sources":["../../../../lib/commands/count-min-sketch/INFO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,WAAW,EAAoC,iBAAiB,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAGnK,MAAM,MAAM,eAAe,GAAG,gBAAgB,CAAC;IAC7C;QAAC,iBAAiB,CAAC,OAAO,CAAC;QAAE,WAAW;KAAC;IACzC;QAAC,iBAAiB,CAAC,OAAO,CAAC;QAAE,WAAW;KAAC;IACzC;QAAC,iBAAiB,CAAC,OAAO,CAAC;QAAE,WAAW;KAAC;CAC1C,CAAC,CAAC;AAEH,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,WAAW,CAAC;IACnB,KAAK,EAAE,WAAW,CAAC;IACnB,KAAK,EAAE,WAAW,CAAC;CACpB;;;gDAIsB,aAAa,OAAO,aAAa;;mNAKkB,WAAW,KAAG,YAAY;0BAG/D,YAAY;;;AAVjD,wBAY6B"}
@@ -0,0 +1,17 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const bloom_1 = require("../bloom");
exports.default = {
IS_READ_ONLY: true,
parseCommand(parser, key) {
parser.push('CMS.INFO');
parser.pushKey(key);
},
transformReply: {
2: (reply, _, typeMapping) => {
return (0, bloom_1.transformInfoV2Reply)(reply, typeMapping);
},
3: undefined
}
};
//# sourceMappingURL=INFO.js.map
@@ -0,0 +1 @@
{"version":3,"file":"INFO.js","sourceRoot":"","sources":["../../../../lib/commands/count-min-sketch/INFO.ts"],"names":[],"mappings":";;AAEA,oCAAgD;AAchD,kBAAe;IACb,YAAY,EAAE,IAAI;IAClB,YAAY,CAAC,MAAqB,EAAE,GAAkB;QACpD,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACxB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtB,CAAC;IACD,cAAc,EAAE;QACd,CAAC,EAAE,CAAC,KAA+C,EAAE,CAAC,EAAE,WAAyB,EAAgB,EAAE;YACjG,OAAO,IAAA,4BAAoB,EAAe,KAAK,EAAE,WAAW,CAAC,CAAC;QAChE,CAAC;QACD,CAAC,EAAE,SAA0C;KAC9C;CACyB,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { RedisArgument, TuplesToMapReply, NumberReply, UnwrapReply, Resp2Reply, Command, SimpleStringReply, TypeMapping } from '@redis/client/dist/lib/RESP/types';\nimport { transformInfoV2Reply } from '../bloom';\n\nexport type CmsInfoReplyMap = TuplesToMapReply<[\n [SimpleStringReply<'width'>, NumberReply],\n [SimpleStringReply<'depth'>, NumberReply],\n [SimpleStringReply<'count'>, NumberReply]\n]>;\n\nexport interface CmsInfoReply {\n width: NumberReply;\n depth: NumberReply;\n count: NumberReply;\n}\n \nexport default {\n IS_READ_ONLY: true,\n parseCommand(parser: CommandParser, key: RedisArgument) {\n parser.push('CMS.INFO');\n parser.pushKey(key);\n },\n transformReply: {\n 2: (reply: UnwrapReply<Resp2Reply<CmsInfoReplyMap>>, _, typeMapping?: TypeMapping): CmsInfoReply => {\n return transformInfoV2Reply<CmsInfoReply>(reply, typeMapping);\n },\n 3: undefined as unknown as () => CmsInfoReply\n }\n} as const satisfies Command;\n"]}
@@ -0,0 +1,9 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument, SimpleStringReply } from '@redis/client/dist/lib/RESP/types';
declare const _default: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, width: number, depth: number) => void;
readonly transformReply: () => SimpleStringReply<'OK'>;
};
export default _default;
//# sourceMappingURL=INITBYDIM.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"INITBYDIM.d.ts","sourceRoot":"","sources":["../../../../lib/commands/count-min-sketch/INITBYDIM.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAW,MAAM,mCAAmC,CAAC;;;gDAIvE,aAAa,OAAO,aAAa,SAAS,MAAM,SAAS,MAAM;mCAKtC,kBAAkB,IAAI,CAAC;;AAPvE,wBAQ6B"}
@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
IS_READ_ONLY: false,
parseCommand(parser, key, width, depth) {
parser.push('CMS.INITBYDIM');
parser.pushKey(key);
parser.push(width.toString(), depth.toString());
},
transformReply: undefined
};
//# sourceMappingURL=INITBYDIM.js.map
@@ -0,0 +1 @@
{"version":3,"file":"INITBYDIM.js","sourceRoot":"","sources":["../../../../lib/commands/count-min-sketch/INITBYDIM.ts"],"names":[],"mappings":";;AAGA,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,KAAa,EAAE,KAAa;QAClF,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAC7B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;IAClD,CAAC;IACD,cAAc,EAAE,SAAqD;CAC3C,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { RedisArgument, SimpleStringReply, Command } from '@redis/client/dist/lib/RESP/types';\n\nexport default {\n IS_READ_ONLY: false,\n parseCommand(parser: CommandParser, key: RedisArgument, width: number, depth: number) {\n parser.push('CMS.INITBYDIM');\n parser.pushKey(key);\n parser.push(width.toString(), depth.toString());\n },\n transformReply: undefined as unknown as () => SimpleStringReply<'OK'>\n} as const satisfies Command;\n"]}
@@ -0,0 +1,9 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument, SimpleStringReply } from '@redis/client/dist/lib/RESP/types';
declare const _default: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, error: number, probability: number) => void;
readonly transformReply: () => SimpleStringReply<'OK'>;
};
export default _default;
//# sourceMappingURL=INITBYPROB.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"INITBYPROB.d.ts","sourceRoot":"","sources":["../../../../lib/commands/count-min-sketch/INITBYPROB.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAW,MAAM,mCAAmC,CAAC;;;gDAIvE,aAAa,OAAO,aAAa,SAAS,MAAM,eAAe,MAAM;mCAK5C,kBAAkB,IAAI,CAAC;;AAPvE,wBAQ6B"}
@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
IS_READ_ONLY: false,
parseCommand(parser, key, error, probability) {
parser.push('CMS.INITBYPROB');
parser.pushKey(key);
parser.push(error.toString(), probability.toString());
},
transformReply: undefined
};
//# sourceMappingURL=INITBYPROB.js.map
@@ -0,0 +1 @@
{"version":3,"file":"INITBYPROB.js","sourceRoot":"","sources":["../../../../lib/commands/count-min-sketch/INITBYPROB.ts"],"names":[],"mappings":";;AAGA,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,KAAa,EAAE,WAAmB;QACxF,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAC9B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,EAAE,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;IACxD,CAAC;IACD,cAAc,EAAE,SAAqD;CAC3C,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { RedisArgument, SimpleStringReply, Command } from '@redis/client/dist/lib/RESP/types';\n\nexport default {\n IS_READ_ONLY: false,\n parseCommand(parser: CommandParser, key: RedisArgument, error: number, probability: number) {\n parser.push('CMS.INITBYPROB');\n parser.pushKey(key);\n parser.push(error.toString(), probability.toString());\n },\n transformReply: undefined as unknown as () => SimpleStringReply<'OK'>\n} as const satisfies Command;\n"]}
@@ -0,0 +1,14 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument, SimpleStringReply } from '@redis/client/dist/lib/RESP/types';
interface BfMergeSketch {
name: RedisArgument;
weight: number;
}
export type BfMergeSketches = Array<RedisArgument> | Array<BfMergeSketch>;
declare const _default: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: CommandParser, destination: RedisArgument, source: BfMergeSketches) => void;
readonly transformReply: () => SimpleStringReply<'OK'>;
};
export default _default;
//# sourceMappingURL=MERGE.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"MERGE.d.ts","sourceRoot":"","sources":["../../../../lib/commands/count-min-sketch/MERGE.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAW,MAAM,mCAAmC,CAAC;AAE9F,UAAU,aAAa;IACrB,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC;;;gDAK9D,aAAa,eACR,aAAa,UAClB,eAAe;mCAkBqB,kBAAkB,IAAI,CAAC;;AAvBvE,wBAwB6B"}
@@ -0,0 +1,27 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
IS_READ_ONLY: false,
parseCommand(parser, destination, source) {
parser.push('CMS.MERGE');
parser.pushKey(destination);
parser.push(source.length.toString());
if (isPlainSketches(source)) {
parser.pushVariadic(source);
}
else {
for (let i = 0; i < source.length; i++) {
parser.push(source[i].name);
}
parser.push('WEIGHTS');
for (let i = 0; i < source.length; i++) {
parser.push(source[i].weight.toString());
}
}
},
transformReply: undefined
};
function isPlainSketches(src) {
return typeof src[0] === 'string' || src[0] instanceof Buffer;
}
//# sourceMappingURL=MERGE.js.map
@@ -0,0 +1 @@
{"version":3,"file":"MERGE.js","sourceRoot":"","sources":["../../../../lib/commands/count-min-sketch/MERGE.ts"],"names":[],"mappings":";;AAUA,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CACV,MAAqB,EACrB,WAA0B,EAC1B,MAAuB;QAEvB,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACzB,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QAC5B,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;QAEtC,IAAI,eAAe,CAAC,MAAM,CAAC,EAAE,CAAC;YAC5B,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;QAC9B,CAAC;aAAM,CAAC;YACN,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBACvC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;YAC9B,CAAC;YACD,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YACvB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBACvC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAA;YAC1C,CAAC;QACH,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAAqD;CAC3C,CAAC;AAE7B,SAAS,eAAe,CAAC,GAAoB;IAC3C,OAAO,OAAO,GAAG,CAAC,CAAC,CAAC,KAAK,QAAQ,IAAI,GAAG,CAAC,CAAC,CAAC,YAAY,MAAM,CAAC;AAChE,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { RedisArgument, SimpleStringReply, Command } from '@redis/client/dist/lib/RESP/types';\n\ninterface BfMergeSketch {\n name: RedisArgument;\n weight: number;\n}\n\nexport type BfMergeSketches = Array<RedisArgument> | Array<BfMergeSketch>;\n\nexport default {\n IS_READ_ONLY: false,\n parseCommand(\n parser: CommandParser,\n destination: RedisArgument,\n source: BfMergeSketches\n ) {\n parser.push('CMS.MERGE');\n parser.pushKey(destination);\n parser.push(source.length.toString());\n\n if (isPlainSketches(source)) {\n parser.pushVariadic(source);\n } else {\n for (let i = 0; i < source.length; i++) {\n parser.push(source[i].name);\n }\n parser.push('WEIGHTS');\n for (let i = 0; i < source.length; i++) {\n parser.push(source[i].weight.toString())\n }\n }\n },\n transformReply: undefined as unknown as () => SimpleStringReply<'OK'>\n} as const satisfies Command;\n\nfunction isPlainSketches(src: BfMergeSketches): src is Array<RedisArgument> {\n return typeof src[0] === 'string' || src[0] instanceof Buffer;\n}\n"]}
@@ -0,0 +1,10 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { ArrayReply, NumberReply, RedisArgument } from '@redis/client/dist/lib/RESP/types';
import { RedisVariadicArgument } from '@redis/client/dist/lib/commands/generic-transformers';
declare const _default: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, items: RedisVariadicArgument) => void;
readonly transformReply: () => ArrayReply<NumberReply>;
};
export default _default;
//# sourceMappingURL=QUERY.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"QUERY.d.ts","sourceRoot":"","sources":["../../../../lib/commands/count-min-sketch/QUERY.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAW,aAAa,EAAE,MAAM,mCAAmC,CAAC;AACpG,OAAO,EAAE,qBAAqB,EAAE,MAAM,sDAAsD,CAAC;;;gDAItE,aAAa,OAAO,aAAa,SAAS,qBAAqB;mCAKtC,WAAW,WAAW,CAAC;;AAPvE,wBAQ6B"}
@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
IS_READ_ONLY: true,
parseCommand(parser, key, items) {
parser.push('CMS.QUERY');
parser.pushKey(key);
parser.pushVariadic(items);
},
transformReply: undefined
};
//# sourceMappingURL=QUERY.js.map
@@ -0,0 +1 @@
{"version":3,"file":"QUERY.js","sourceRoot":"","sources":["../../../../lib/commands/count-min-sketch/QUERY.ts"],"names":[],"mappings":";;AAIA,kBAAe;IACb,YAAY,EAAE,IAAI;IAClB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,KAA4B;QAClF,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACzB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;IACD,cAAc,EAAE,SAAqD;CAC3C,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { ArrayReply, NumberReply, Command, RedisArgument } from '@redis/client/dist/lib/RESP/types';\nimport { RedisVariadicArgument } from '@redis/client/dist/lib/commands/generic-transformers';\n\nexport default {\n IS_READ_ONLY: true,\n parseCommand(parser: CommandParser, key: RedisArgument, items: RedisVariadicArgument) {\n parser.push('CMS.QUERY');\n parser.pushKey(key);\n parser.pushVariadic(items);\n },\n transformReply: undefined as unknown as () => ArrayReply<NumberReply>\n} as const satisfies Command;\n"]}
@@ -0,0 +1,132 @@
declare const _default: {
/**
* Increases the count of one or more items in a Count-Min Sketch
* @param key - The name of the sketch
* @param items - A single item or array of items to increment, each with an item and increment value
*/
readonly INCRBY: {
readonly IS_READ_ONLY: false;
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;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
};
/**
* Increases the count of one or more items in a Count-Min Sketch
* @param key - The name of the sketch
* @param items - A single item or array of items to increment, each with an item and increment value
*/
readonly incrBy: {
readonly IS_READ_ONLY: false;
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;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
};
/**
* Returns width, depth, and total count of items in a Count-Min Sketch
* @param key - The name of the sketch to get information about
*/
readonly INFO: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument) => void;
readonly transformReply: {
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;
readonly 3: () => import("./INFO").CmsInfoReply;
};
};
/**
* Returns width, depth, and total count of items in a Count-Min Sketch
* @param key - The name of the sketch to get information about
*/
readonly info: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument) => void;
readonly transformReply: {
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;
readonly 3: () => import("./INFO").CmsInfoReply;
};
};
/**
* Initialize a Count-Min Sketch using width and depth parameters
* @param key - The name of the sketch
* @param width - Number of counters in each array (must be a multiple of 2)
* @param depth - Number of counter arrays (determines accuracy of estimates)
*/
readonly INITBYDIM: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, width: number, depth: number) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
/**
* Initialize a Count-Min Sketch using width and depth parameters
* @param key - The name of the sketch
* @param width - Number of counters in each array (must be a multiple of 2)
* @param depth - Number of counter arrays (determines accuracy of estimates)
*/
readonly initByDim: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, width: number, depth: number) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
/**
* Initialize a Count-Min Sketch using error rate and probability parameters
* @param key - The name of the sketch
* @param error - Estimate error, as a decimal between 0 and 1
* @param probability - The desired probability for inflated count, as a decimal between 0 and 1
*/
readonly INITBYPROB: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, error: number, probability: number) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
/**
* Initialize a Count-Min Sketch using error rate and probability parameters
* @param key - The name of the sketch
* @param error - Estimate error, as a decimal between 0 and 1
* @param probability - The desired probability for inflated count, as a decimal between 0 and 1
*/
readonly initByProb: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, error: number, probability: number) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
/**
* Merges multiple Count-Min Sketches into a single sketch, with optional weights
* @param destination - The name of the destination sketch
* @param source - Array of sketch names or array of sketches with weights
*/
readonly MERGE: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, destination: import("@redis/client/dist/lib/RESP/types").RedisArgument, source: import("./MERGE").BfMergeSketches) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
/**
* Merges multiple Count-Min Sketches into a single sketch, with optional weights
* @param destination - The name of the destination sketch
* @param source - Array of sketch names or array of sketches with weights
*/
readonly merge: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, destination: import("@redis/client/dist/lib/RESP/types").RedisArgument, source: import("./MERGE").BfMergeSketches) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
/**
* Returns the count for one or more items in a Count-Min Sketch
* @param key - The name of the sketch
* @param items - One or more items to get counts for
*/
readonly QUERY: {
readonly IS_READ_ONLY: true;
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;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
};
/**
* Returns the count for one or more items in a Count-Min Sketch
* @param key - The name of the sketch
* @param items - One or more items to get counts for
*/
readonly query: {
readonly IS_READ_ONLY: true;
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;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
};
};
export default _default;
//# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/commands/count-min-sketch/index.ts"],"names":[],"mappings":";IASE;;;;OAIG;;;;;;IAEH;;;;OAIG;;;;;;IAEH;;;OAGG;;;;;;;;;IAEH;;;OAGG;;;;;;;;;IAEH;;;;;OAKG;;;;;;IAEH;;;;;OAKG;;;;;;IAEH;;;;;OAKG;;;;;;IAEH;;;;;OAKG;;;;;;IAEH;;;;OAIG;;;;;;IAEH;;;;OAIG;;;;;;IAEH;;;;OAIG;;;;;;IAEH;;;;OAIG;;;;;;;AAzEL,wBA2EmC"}
@@ -0,0 +1,88 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const INCRBY_1 = __importDefault(require("./INCRBY"));
const INFO_1 = __importDefault(require("./INFO"));
const INITBYDIM_1 = __importDefault(require("./INITBYDIM"));
const INITBYPROB_1 = __importDefault(require("./INITBYPROB"));
const MERGE_1 = __importDefault(require("./MERGE"));
const QUERY_1 = __importDefault(require("./QUERY"));
exports.default = {
/**
* Increases the count of one or more items in a Count-Min Sketch
* @param key - The name of the sketch
* @param items - A single item or array of items to increment, each with an item and increment value
*/
INCRBY: INCRBY_1.default,
/**
* Increases the count of one or more items in a Count-Min Sketch
* @param key - The name of the sketch
* @param items - A single item or array of items to increment, each with an item and increment value
*/
incrBy: INCRBY_1.default,
/**
* Returns width, depth, and total count of items in a Count-Min Sketch
* @param key - The name of the sketch to get information about
*/
INFO: INFO_1.default,
/**
* Returns width, depth, and total count of items in a Count-Min Sketch
* @param key - The name of the sketch to get information about
*/
info: INFO_1.default,
/**
* Initialize a Count-Min Sketch using width and depth parameters
* @param key - The name of the sketch
* @param width - Number of counters in each array (must be a multiple of 2)
* @param depth - Number of counter arrays (determines accuracy of estimates)
*/
INITBYDIM: INITBYDIM_1.default,
/**
* Initialize a Count-Min Sketch using width and depth parameters
* @param key - The name of the sketch
* @param width - Number of counters in each array (must be a multiple of 2)
* @param depth - Number of counter arrays (determines accuracy of estimates)
*/
initByDim: INITBYDIM_1.default,
/**
* Initialize a Count-Min Sketch using error rate and probability parameters
* @param key - The name of the sketch
* @param error - Estimate error, as a decimal between 0 and 1
* @param probability - The desired probability for inflated count, as a decimal between 0 and 1
*/
INITBYPROB: INITBYPROB_1.default,
/**
* Initialize a Count-Min Sketch using error rate and probability parameters
* @param key - The name of the sketch
* @param error - Estimate error, as a decimal between 0 and 1
* @param probability - The desired probability for inflated count, as a decimal between 0 and 1
*/
initByProb: INITBYPROB_1.default,
/**
* Merges multiple Count-Min Sketches into a single sketch, with optional weights
* @param destination - The name of the destination sketch
* @param source - Array of sketch names or array of sketches with weights
*/
MERGE: MERGE_1.default,
/**
* Merges multiple Count-Min Sketches into a single sketch, with optional weights
* @param destination - The name of the destination sketch
* @param source - Array of sketch names or array of sketches with weights
*/
merge: MERGE_1.default,
/**
* Returns the count for one or more items in a Count-Min Sketch
* @param key - The name of the sketch
* @param items - One or more items to get counts for
*/
QUERY: QUERY_1.default,
/**
* Returns the count for one or more items in a Count-Min Sketch
* @param key - The name of the sketch
* @param items - One or more items to get counts for
*/
query: QUERY_1.default
};
//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/commands/count-min-sketch/index.ts"],"names":[],"mappings":";;;;;AACA,sDAA8B;AAC9B,kDAA0B;AAC1B,4DAAoC;AACpC,8DAAsC;AACtC,oDAA4B;AAC5B,oDAA4B;AAE5B,kBAAe;IACb;;;;OAIG;IACH,MAAM,EAAN,gBAAM;IACN;;;;OAIG;IACH,MAAM,EAAE,gBAAM;IACd;;;OAGG;IACH,IAAI,EAAJ,cAAI;IACJ;;;OAGG;IACH,IAAI,EAAE,cAAI;IACV;;;;;OAKG;IACH,SAAS,EAAT,mBAAS;IACT;;;;;OAKG;IACH,SAAS,EAAE,mBAAS;IACpB;;;;;OAKG;IACH,UAAU,EAAV,oBAAU;IACV;;;;;OAKG;IACH,UAAU,EAAE,oBAAU;IACtB;;;;OAIG;IACH,KAAK,EAAL,eAAK;IACL;;;;OAIG;IACH,KAAK,EAAE,eAAK;IACZ;;;;OAIG;IACH,KAAK,EAAL,eAAK;IACL;;;;OAIG;IACH,KAAK,EAAE,eAAK;CACoB,CAAC","sourcesContent":["import type { RedisCommands } from '@redis/client/dist/lib/RESP/types';\nimport INCRBY from './INCRBY';\nimport INFO from './INFO';\nimport INITBYDIM from './INITBYDIM';\nimport INITBYPROB from './INITBYPROB';\nimport MERGE from './MERGE';\nimport QUERY from './QUERY';\n\nexport default {\n /**\n * Increases the count of one or more items in a Count-Min Sketch\n * @param key - The name of the sketch\n * @param items - A single item or array of items to increment, each with an item and increment value\n */\n INCRBY,\n /**\n * Increases the count of one or more items in a Count-Min Sketch\n * @param key - The name of the sketch\n * @param items - A single item or array of items to increment, each with an item and increment value\n */\n incrBy: INCRBY,\n /**\n * Returns width, depth, and total count of items in a Count-Min Sketch\n * @param key - The name of the sketch to get information about\n */\n INFO,\n /**\n * Returns width, depth, and total count of items in a Count-Min Sketch\n * @param key - The name of the sketch to get information about\n */\n info: INFO,\n /**\n * Initialize a Count-Min Sketch using width and depth parameters\n * @param key - The name of the sketch\n * @param width - Number of counters in each array (must be a multiple of 2)\n * @param depth - Number of counter arrays (determines accuracy of estimates)\n */\n INITBYDIM,\n /**\n * Initialize a Count-Min Sketch using width and depth parameters\n * @param key - The name of the sketch\n * @param width - Number of counters in each array (must be a multiple of 2)\n * @param depth - Number of counter arrays (determines accuracy of estimates)\n */\n initByDim: INITBYDIM,\n /**\n * Initialize a Count-Min Sketch using error rate and probability parameters\n * @param key - The name of the sketch\n * @param error - Estimate error, as a decimal between 0 and 1\n * @param probability - The desired probability for inflated count, as a decimal between 0 and 1\n */\n INITBYPROB,\n /**\n * Initialize a Count-Min Sketch using error rate and probability parameters\n * @param key - The name of the sketch\n * @param error - Estimate error, as a decimal between 0 and 1\n * @param probability - The desired probability for inflated count, as a decimal between 0 and 1\n */\n initByProb: INITBYPROB,\n /**\n * Merges multiple Count-Min Sketches into a single sketch, with optional weights\n * @param destination - The name of the destination sketch\n * @param source - Array of sketch names or array of sketches with weights\n */\n MERGE,\n /**\n * Merges multiple Count-Min Sketches into a single sketch, with optional weights\n * @param destination - The name of the destination sketch\n * @param source - Array of sketch names or array of sketches with weights\n */\n merge: MERGE,\n /**\n * Returns the count for one or more items in a Count-Min Sketch\n * @param key - The name of the sketch\n * @param items - One or more items to get counts for\n */\n QUERY,\n /**\n * Returns the count for one or more items in a Count-Min Sketch\n * @param key - The name of the sketch\n * @param items - One or more items to get counts for\n */\n query: QUERY\n} as const satisfies RedisCommands;\n"]}
@@ -0,0 +1,12 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument } from '@redis/client/dist/lib/RESP/types';
declare const _default: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, item: RedisArgument) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
};
};
export default _default;
//# sourceMappingURL=ADD.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"ADD.d.ts","sourceRoot":"","sources":["../../../../lib/commands/cuckoo/ADD.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAW,MAAM,mCAAmC,CAAC;;;gDAKpD,aAAa,OAAO,aAAa,QAAQ,aAAa;;;;;;AAF7E,wBAQ6B"}
@@ -0,0 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
exports.default = {
IS_READ_ONLY: false,
parseCommand(parser, key, item) {
parser.push('CF.ADD');
parser.pushKey(key);
parser.push(item);
},
transformReply: generic_transformers_1.transformBooleanReply
};
//# sourceMappingURL=ADD.js.map
@@ -0,0 +1 @@
{"version":3,"file":"ADD.js","sourceRoot":"","sources":["../../../../lib/commands/cuckoo/ADD.ts"],"names":[],"mappings":";;AAEA,+FAA6F;AAE7F,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,IAAmB;QACzE,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACtB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC;IACD,cAAc,EAAE,4CAAqB;CACX,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { RedisArgument, Command } from '@redis/client/dist/lib/RESP/types';\nimport { transformBooleanReply } from '@redis/client/dist/lib/commands/generic-transformers';\n\nexport default {\n IS_READ_ONLY: false,\n parseCommand(parser: CommandParser, key: RedisArgument, item: RedisArgument) {\n parser.push('CF.ADD');\n parser.pushKey(key);\n parser.push(item);\n },\n transformReply: transformBooleanReply\n} as const satisfies Command;\n"]}
@@ -0,0 +1,12 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument } from '@redis/client/dist/lib/RESP/types';
declare const _default: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, item: RedisArgument) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
};
};
export default _default;
//# sourceMappingURL=ADDNX.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"ADDNX.d.ts","sourceRoot":"","sources":["../../../../lib/commands/cuckoo/ADDNX.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAW,MAAM,mCAAmC,CAAC;;;gDAKpD,aAAa,OAAO,aAAa,QAAQ,aAAa;;;;;;AAF7E,wBAQ6B"}
@@ -0,0 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
exports.default = {
IS_READ_ONLY: false,
parseCommand(parser, key, item) {
parser.push('CF.ADDNX');
parser.pushKey(key);
parser.push(item);
},
transformReply: generic_transformers_1.transformBooleanReply
};
//# sourceMappingURL=ADDNX.js.map
@@ -0,0 +1 @@
{"version":3,"file":"ADDNX.js","sourceRoot":"","sources":["../../../../lib/commands/cuckoo/ADDNX.ts"],"names":[],"mappings":";;AAEA,+FAA6F;AAE7F,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,IAAmB;QACzE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACxB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC;IACD,cAAc,EAAE,4CAAqB;CACX,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { RedisArgument, Command } from '@redis/client/dist/lib/RESP/types';\nimport { transformBooleanReply } from '@redis/client/dist/lib/commands/generic-transformers';\n\nexport default {\n IS_READ_ONLY: false,\n parseCommand(parser: CommandParser, key: RedisArgument, item: RedisArgument) {\n parser.push('CF.ADDNX');\n parser.pushKey(key);\n parser.push(item);\n },\n transformReply: transformBooleanReply\n} as const satisfies Command;\n"]}
@@ -0,0 +1,9 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument, NumberReply } from '@redis/client/dist/lib/RESP/types';
declare const _default: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, item: RedisArgument) => void;
readonly transformReply: () => NumberReply;
};
export default _default;
//# sourceMappingURL=COUNT.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"COUNT.d.ts","sourceRoot":"","sources":["../../../../lib/commands/cuckoo/COUNT.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAW,MAAM,mCAAmC,CAAC;;;gDAIjE,aAAa,OAAO,aAAa,QAAQ,aAAa;mCAK7B,WAAW;;AAP3D,wBAQ6B"}
@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
IS_READ_ONLY: true,
parseCommand(parser, key, item) {
parser.push('CF.COUNT');
parser.pushKey(key);
parser.push(item);
},
transformReply: undefined
};
//# sourceMappingURL=COUNT.js.map
@@ -0,0 +1 @@
{"version":3,"file":"COUNT.js","sourceRoot":"","sources":["../../../../lib/commands/cuckoo/COUNT.ts"],"names":[],"mappings":";;AAGA,kBAAe;IACb,YAAY,EAAE,IAAI;IAClB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,IAAmB;QACzE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACxB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC;IACD,cAAc,EAAE,SAAyC;CAC/B,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { RedisArgument, NumberReply, Command } from '@redis/client/dist/lib/RESP/types';\n\nexport default {\n IS_READ_ONLY: true,\n parseCommand(parser: CommandParser, key: RedisArgument, item: RedisArgument) {\n parser.push('CF.COUNT');\n parser.pushKey(key);\n parser.push(item);\n },\n transformReply: undefined as unknown as () => NumberReply\n} as const satisfies Command;\n"]}
@@ -0,0 +1,12 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument } from '@redis/client/dist/lib/RESP/types';
declare const _default: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, item: RedisArgument) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
};
};
export default _default;
//# sourceMappingURL=DEL.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"DEL.d.ts","sourceRoot":"","sources":["../../../../lib/commands/cuckoo/DEL.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAW,MAAM,mCAAmC,CAAC;;;gDAKpD,aAAa,OAAO,aAAa,QAAQ,aAAa;;;;;;AAF7E,wBAQ6B"}
@@ -0,0 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
exports.default = {
IS_READ_ONLY: false,
parseCommand(parser, key, item) {
parser.push('CF.DEL');
parser.pushKey(key);
parser.push(item);
},
transformReply: generic_transformers_1.transformBooleanReply
};
//# sourceMappingURL=DEL.js.map
@@ -0,0 +1 @@
{"version":3,"file":"DEL.js","sourceRoot":"","sources":["../../../../lib/commands/cuckoo/DEL.ts"],"names":[],"mappings":";;AAEA,+FAA6F;AAE7F,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,IAAmB;QACzE,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACtB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC;IACD,cAAc,EAAE,4CAAqB;CACX,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { RedisArgument, Command } from '@redis/client/dist/lib/RESP/types';\nimport { transformBooleanReply } from '@redis/client/dist/lib/commands/generic-transformers';\n\nexport default {\n IS_READ_ONLY: false,\n parseCommand(parser: CommandParser, key: RedisArgument, item: RedisArgument) {\n parser.push('CF.DEL');\n parser.pushKey(key);\n parser.push(item);\n },\n transformReply: transformBooleanReply\n} as const satisfies Command;\n"]}
@@ -0,0 +1,12 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument } from '@redis/client/dist/lib/RESP/types';
declare const _default: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, item: RedisArgument) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
};
};
export default _default;
//# sourceMappingURL=EXISTS.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"EXISTS.d.ts","sourceRoot":"","sources":["../../../../lib/commands/cuckoo/EXISTS.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAW,MAAM,mCAAmC,CAAC;;;gDAKpD,aAAa,OAAO,aAAa,QAAQ,aAAa;;;;;;AAF7E,wBAQ6B"}
@@ -0,0 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
exports.default = {
IS_READ_ONLY: false,
parseCommand(parser, key, item) {
parser.push('CF.EXISTS');
parser.pushKey(key);
parser.push(item);
},
transformReply: generic_transformers_1.transformBooleanReply
};
//# sourceMappingURL=EXISTS.js.map
@@ -0,0 +1 @@
{"version":3,"file":"EXISTS.js","sourceRoot":"","sources":["../../../../lib/commands/cuckoo/EXISTS.ts"],"names":[],"mappings":";;AAEA,+FAA6F;AAE7F,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,IAAmB;QACzE,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACzB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC;IACD,cAAc,EAAE,4CAAqB;CACX,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { RedisArgument, Command } from '@redis/client/dist/lib/RESP/types';\nimport { transformBooleanReply } from '@redis/client/dist/lib/commands/generic-transformers';\n\nexport default {\n IS_READ_ONLY: false,\n parseCommand(parser: CommandParser, key: RedisArgument, item: RedisArgument) {\n parser.push('CF.EXISTS');\n parser.pushKey(key);\n parser.push(item);\n },\n transformReply: transformBooleanReply\n} as const satisfies Command;\n"]}
@@ -0,0 +1,46 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument, NumberReply, TuplesToMapReply, SimpleStringReply, TypeMapping } from '@redis/client/dist/lib/RESP/types';
export type CfInfoReplyMap = TuplesToMapReply<[
[
SimpleStringReply<'Size'>,
NumberReply
],
[
SimpleStringReply<'Number of buckets'>,
NumberReply
],
[
SimpleStringReply<'Number of filters'>,
NumberReply
],
[
SimpleStringReply<'Number of items inserted'>,
NumberReply
],
[
SimpleStringReply<'Number of items deleted'>,
NumberReply
],
[
SimpleStringReply<'Bucket size'>,
NumberReply
],
[
SimpleStringReply<'Expansion rate'>,
NumberReply
],
[
SimpleStringReply<'Max iterations'>,
NumberReply
]
]>;
declare const _default: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument) => void;
readonly transformReply: {
readonly 2: (this: void, reply: [SimpleStringReply<"Size">, NumberReply<number>, SimpleStringReply<"Number of buckets">, NumberReply<number>, SimpleStringReply<"Number of filters">, NumberReply<number>, SimpleStringReply<"Number of items inserted">, NumberReply<number>, SimpleStringReply<"Number of items deleted">, NumberReply<number>, SimpleStringReply<"Bucket size">, NumberReply<number>, SimpleStringReply<"Expansion rate">, NumberReply<number>, SimpleStringReply<"Max iterations">, NumberReply<number>], _: any, typeMapping?: TypeMapping) => CfInfoReplyMap;
readonly 3: () => CfInfoReplyMap;
};
};
export default _default;
//# sourceMappingURL=INFO.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"INFO.d.ts","sourceRoot":"","sources":["../../../../lib/commands/cuckoo/INFO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAW,WAAW,EAAE,gBAAgB,EAA2B,iBAAiB,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAGnK,MAAM,MAAM,cAAc,GAAG,gBAAgB,CAAC;IAC5C;QAAC,iBAAiB,CAAC,MAAM,CAAC;QAAE,WAAW;KAAC;IACxC;QAAC,iBAAiB,CAAC,mBAAmB,CAAC;QAAE,WAAW;KAAC;IACrD;QAAC,iBAAiB,CAAC,mBAAmB,CAAC;QAAE,WAAW;KAAC;IACrD;QAAC,iBAAiB,CAAC,0BAA0B,CAAC;QAAE,WAAW;KAAC;IAC5D;QAAC,iBAAiB,CAAC,yBAAyB,CAAC;QAAE,WAAW;KAAC;IAC3D;QAAC,iBAAiB,CAAC,aAAa,CAAC;QAAE,WAAW;KAAC;IAC/C;QAAC,iBAAiB,CAAC,gBAAgB,CAAC;QAAE,WAAW;KAAC;IAClD;QAAC,iBAAiB,CAAC,gBAAgB,CAAC;QAAE,WAAW;KAAC;CACnD,CAAC,CAAC;;;gDAIoB,aAAa,OAAO,aAAa;;4hBAKiB,WAAW;;;;AAPpF,wBAY6B"}
@@ -0,0 +1,17 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const bloom_1 = require("../bloom");
exports.default = {
IS_READ_ONLY: true,
parseCommand(parser, key) {
parser.push('CF.INFO');
parser.pushKey(key);
},
transformReply: {
2: (reply, _, typeMapping) => {
return (0, bloom_1.transformInfoV2Reply)(reply, typeMapping);
},
3: undefined
}
};
//# sourceMappingURL=INFO.js.map
@@ -0,0 +1 @@
{"version":3,"file":"INFO.js","sourceRoot":"","sources":["../../../../lib/commands/cuckoo/INFO.ts"],"names":[],"mappings":";;AAEA,oCAAgD;AAahD,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,4BAAoB,EAAiB,KAAK,EAAE,WAAW,CAAC,CAAC;QAClE,CAAC;QACD,CAAC,EAAE,SAA4C;KAChD;CACyB,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { RedisArgument, Command, NumberReply, TuplesToMapReply, UnwrapReply, Resp2Reply, SimpleStringReply, TypeMapping } from '@redis/client/dist/lib/RESP/types';\nimport { transformInfoV2Reply } from '../bloom';\n\nexport type CfInfoReplyMap = TuplesToMapReply<[\n [SimpleStringReply<'Size'>, NumberReply],\n [SimpleStringReply<'Number of buckets'>, NumberReply],\n [SimpleStringReply<'Number of filters'>, NumberReply],\n [SimpleStringReply<'Number of items inserted'>, NumberReply],\n [SimpleStringReply<'Number of items deleted'>, NumberReply],\n [SimpleStringReply<'Bucket size'>, NumberReply],\n [SimpleStringReply<'Expansion rate'>, NumberReply],\n [SimpleStringReply<'Max iterations'>, NumberReply]\n]>;\n\nexport default {\n IS_READ_ONLY: true,\n parseCommand(parser: CommandParser, key: RedisArgument) {\n parser.push('CF.INFO');\n parser.pushKey(key);\n },\n transformReply: {\n 2: (reply: UnwrapReply<Resp2Reply<CfInfoReplyMap>>, _, typeMapping?: TypeMapping): CfInfoReplyMap => {\n return transformInfoV2Reply<CfInfoReplyMap>(reply, typeMapping);\n },\n 3: undefined as unknown as () => CfInfoReplyMap\n }\n} as const satisfies Command;\n"]}
@@ -0,0 +1,18 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument } from '@redis/client/dist/lib/RESP/types';
import { RedisVariadicArgument } from '@redis/client/dist/lib/commands/generic-transformers';
export interface CfInsertOptions {
CAPACITY?: number;
NOCREATE?: boolean;
}
export declare function parseCfInsertArguments(parser: CommandParser, key: RedisArgument, items: RedisVariadicArgument, options?: CfInsertOptions): void;
declare const _default: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, items: RedisVariadicArgument, options?: CfInsertOptions | undefined) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
};
};
export default _default;
//# sourceMappingURL=INSERT.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"INSERT.d.ts","sourceRoot":"","sources":["../../../../lib/commands/cuckoo/INSERT.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAW,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAA8B,MAAM,sDAAsD,CAAC;AAEzH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,aAAa,EACrB,GAAG,EAAE,aAAa,EAClB,KAAK,EAAE,qBAAqB,EAC5B,OAAO,CAAC,EAAE,eAAe,QAc1B;;;;;;;;;AAED,wBAO6B"}
@@ -0,0 +1,25 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseCfInsertArguments = void 0;
const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
function parseCfInsertArguments(parser, key, items, options) {
parser.pushKey(key);
if (options?.CAPACITY !== undefined) {
parser.push('CAPACITY', options.CAPACITY.toString());
}
if (options?.NOCREATE) {
parser.push('NOCREATE');
}
parser.push('ITEMS');
parser.pushVariadic(items);
}
exports.parseCfInsertArguments = parseCfInsertArguments;
exports.default = {
IS_READ_ONLY: false,
parseCommand(...args) {
args[0].push('CF.INSERT');
parseCfInsertArguments(...args);
},
transformReply: generic_transformers_1.transformBooleanArrayReply
};
//# sourceMappingURL=INSERT.js.map
@@ -0,0 +1 @@
{"version":3,"file":"INSERT.js","sourceRoot":"","sources":["../../../../lib/commands/cuckoo/INSERT.ts"],"names":[],"mappings":";;;AAEA,+FAAyH;AAOzH,SAAgB,sBAAsB,CACpC,MAAqB,EACrB,GAAkB,EAClB,KAA4B,EAC5B,OAAyB;IAEzB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAEpB,IAAI,OAAO,EAAE,QAAQ,KAAK,SAAS,EAAE,CAAC;QACpC,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC;IACvD,CAAC;IAED,IAAI,OAAO,EAAE,QAAQ,EAAE,CAAC;QACtB,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC1B,CAAC;IAED,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrB,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;AAC7B,CAAC;AAlBD,wDAkBC;AAED,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CAAC,GAAG,IAA+C;QAC7D,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC1B,sBAAsB,CAAC,GAAG,IAAI,CAAC,CAAC;IAClC,CAAC;IACD,cAAc,EAAE,iDAA0B;CAChB,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { Command, RedisArgument } from '@redis/client/dist/lib/RESP/types';\nimport { RedisVariadicArgument, transformBooleanArrayReply } from '@redis/client/dist/lib/commands/generic-transformers';\n\nexport interface CfInsertOptions {\n CAPACITY?: number;\n NOCREATE?: boolean;\n}\n\nexport function parseCfInsertArguments(\n parser: CommandParser, \n key: RedisArgument,\n items: RedisVariadicArgument,\n options?: CfInsertOptions\n) {\n parser.pushKey(key);\n\n if (options?.CAPACITY !== undefined) {\n parser.push('CAPACITY', options.CAPACITY.toString());\n }\n\n if (options?.NOCREATE) {\n parser.push('NOCREATE');\n }\n\n parser.push('ITEMS');\n parser.pushVariadic(items);\n}\n\nexport default {\n IS_READ_ONLY: false,\n parseCommand(...args: Parameters<typeof parseCfInsertArguments>) {\n args[0].push('CF.INSERT');\n parseCfInsertArguments(...args);\n },\n transformReply: transformBooleanArrayReply\n} as const satisfies Command;\n"]}
@@ -0,0 +1,17 @@
import { ArrayReply, NumberReply } from '@redis/client/dist/lib/RESP/types';
/**
* Adds one or more items to a Cuckoo Filter only if they do not exist yet, creating the filter if needed
* @param parser - The command parser
* @param key - The name of the Cuckoo filter
* @param items - One or more items to add to the filter
* @param options - Optional parameters for filter creation
* @param options.CAPACITY - The number of entries intended to be added to the filter
* @param options.NOCREATE - If true, prevents automatic filter creation
*/
declare const _default: {
readonly IS_READ_ONLY: false;
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;
readonly transformReply: () => ArrayReply<NumberReply<-1 | 0 | 1>>;
};
export default _default;
//# sourceMappingURL=INSERTNX.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"INSERTNX.d.ts","sourceRoot":"","sources":["../../../../lib/commands/cuckoo/INSERTNX.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAW,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAGrF;;;;;;;;GAQG;;;;mCAO6C,WAAW,YAAY,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;;AANnF,wBAO6B"}
@@ -0,0 +1,44 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const INSERT_1 = __importStar(require("./INSERT"));
/**
* Adds one or more items to a Cuckoo Filter only if they do not exist yet, creating the filter if needed
* @param parser - The command parser
* @param key - The name of the Cuckoo filter
* @param items - One or more items to add to the filter
* @param options - Optional parameters for filter creation
* @param options.CAPACITY - The number of entries intended to be added to the filter
* @param options.NOCREATE - If true, prevents automatic filter creation
*/
exports.default = {
IS_READ_ONLY: INSERT_1.default.IS_READ_ONLY,
parseCommand(...args) {
args[0].push('CF.INSERTNX');
(0, INSERT_1.parseCfInsertArguments)(...args);
},
transformReply: undefined
};
//# sourceMappingURL=INSERTNX.js.map
@@ -0,0 +1 @@
{"version":3,"file":"INSERTNX.js","sourceRoot":"","sources":["../../../../lib/commands/cuckoo/INSERTNX.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,mDAA0D;AAE1D;;;;;;;;GAQG;AACH,kBAAe;IACb,YAAY,EAAE,gBAAM,CAAC,YAAY;IACjC,YAAY,CAAC,GAAG,IAA+C;QAC7D,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC5B,IAAA,+BAAsB,EAAC,GAAG,IAAI,CAAC,CAAC;IAClC,CAAC;IACD,cAAc,EAAE,SAAiE;CACvD,CAAC","sourcesContent":["import { ArrayReply, Command, NumberReply } from '@redis/client/dist/lib/RESP/types';\nimport INSERT, { parseCfInsertArguments } from './INSERT';\n\n/**\n * Adds one or more items to a Cuckoo Filter only if they do not exist yet, creating the filter if needed\n * @param parser - The command parser\n * @param key - The name of the Cuckoo filter\n * @param items - One or more items to add to the filter\n * @param options - Optional parameters for filter creation\n * @param options.CAPACITY - The number of entries intended to be added to the filter\n * @param options.NOCREATE - If true, prevents automatic filter creation\n */\nexport default {\n IS_READ_ONLY: INSERT.IS_READ_ONLY,\n parseCommand(...args: Parameters<typeof parseCfInsertArguments>) {\n args[0].push('CF.INSERTNX');\n parseCfInsertArguments(...args);\n },\n transformReply: undefined as unknown as () => ArrayReply<NumberReply<-1 | 0 | 1>>\n} as const satisfies Command;\n"]}
@@ -0,0 +1,9 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { SimpleStringReply, RedisArgument } from '@redis/client/dist/lib/RESP/types';
declare const _default: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, iterator: number, chunk: RedisArgument) => void;
readonly transformReply: () => SimpleStringReply<'OK'>;
};
export default _default;
//# sourceMappingURL=LOADCHUNK.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"LOADCHUNK.d.ts","sourceRoot":"","sources":["../../../../lib/commands/cuckoo/LOADCHUNK.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAW,aAAa,EAAE,MAAM,mCAAmC,CAAC;;;gDAIvE,aAAa,OAAO,aAAa,YAAY,MAAM,SAAS,aAAa;mCAKhD,kBAAkB,IAAI,CAAC;;AAPvE,wBAQ6B"}
@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
IS_READ_ONLY: false,
parseCommand(parser, key, iterator, chunk) {
parser.push('CF.LOADCHUNK');
parser.pushKey(key);
parser.push(iterator.toString(), chunk);
},
transformReply: undefined
};
//# sourceMappingURL=LOADCHUNK.js.map
@@ -0,0 +1 @@
{"version":3,"file":"LOADCHUNK.js","sourceRoot":"","sources":["../../../../lib/commands/cuckoo/LOADCHUNK.ts"],"names":[],"mappings":";;AAGA,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,QAAgB,EAAE,KAAoB;QAC5F,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAC5B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,EAAE,KAAK,CAAC,CAAC;IAC1C,CAAC;IACD,cAAc,EAAE,SAAqD;CAC3C,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { SimpleStringReply, Command, RedisArgument } from '@redis/client/dist/lib/RESP/types';\n\nexport default {\n IS_READ_ONLY: false,\n parseCommand(parser: CommandParser, key: RedisArgument, iterator: number, chunk: RedisArgument) {\n parser.push('CF.LOADCHUNK');\n parser.pushKey(key);\n parser.push(iterator.toString(), chunk);\n },\n transformReply: undefined as unknown as () => SimpleStringReply<'OK'>\n} as const satisfies Command;\n"]}
@@ -0,0 +1,14 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument, SimpleStringReply } from '@redis/client/dist/lib/RESP/types';
export interface CfReserveOptions {
BUCKETSIZE?: number;
MAXITERATIONS?: number;
EXPANSION?: number;
}
declare const _default: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, capacity: number, options?: CfReserveOptions) => void;
readonly transformReply: () => SimpleStringReply<'OK'>;
};
export default _default;
//# sourceMappingURL=RESERVE.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"RESERVE.d.ts","sourceRoot":"","sources":["../../../../lib/commands/cuckoo/RESERVE.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAW,MAAM,mCAAmC,CAAC;AAE9F,MAAM,WAAW,gBAAgB;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;;;gDAKW,aAAa,OAChB,aAAa,YACR,MAAM,YACN,gBAAgB;mCAkBkB,kBAAkB,IAAI,CAAC;;AAxBvE,wBAyB6B"}
@@ -0,0 +1,21 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
IS_READ_ONLY: false,
parseCommand(parser, key, capacity, options) {
parser.push('CF.RESERVE');
parser.pushKey(key);
parser.push(capacity.toString());
if (options?.BUCKETSIZE !== undefined) {
parser.push('BUCKETSIZE', options.BUCKETSIZE.toString());
}
if (options?.MAXITERATIONS !== undefined) {
parser.push('MAXITERATIONS', options.MAXITERATIONS.toString());
}
if (options?.EXPANSION !== undefined) {
parser.push('EXPANSION', options.EXPANSION.toString());
}
},
transformReply: undefined
};
//# sourceMappingURL=RESERVE.js.map
@@ -0,0 +1 @@
{"version":3,"file":"RESERVE.js","sourceRoot":"","sources":["../../../../lib/commands/cuckoo/RESERVE.ts"],"names":[],"mappings":";;AASA,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CACV,MAAqB,EACrB,GAAkB,EAClB,QAAgB,EAChB,OAA0B;QAE1B,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC1B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC;QAEjC,IAAI,OAAO,EAAE,UAAU,KAAK,SAAS,EAAE,CAAC;YACtC,MAAM,CAAC,IAAI,CAAC,YAAY,EAAE,OAAO,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC3D,CAAC;QAED,IAAI,OAAO,EAAE,aAAa,KAAK,SAAS,EAAE,CAAC;YACzC,MAAM,CAAC,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC,aAAa,CAAC,QAAQ,EAAE,CAAC,CAAC;QACjE,CAAC;QAED,IAAI,OAAO,EAAE,SAAS,KAAK,SAAS,EAAE,CAAC;YACrC,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC,CAAC;QACzD,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAAqD;CAC3C,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { RedisArgument, SimpleStringReply, Command } from '@redis/client/dist/lib/RESP/types';\n\nexport interface CfReserveOptions {\n BUCKETSIZE?: number;\n MAXITERATIONS?: number;\n EXPANSION?: number;\n}\n\nexport default {\n IS_READ_ONLY: false,\n parseCommand(\n parser: CommandParser,\n key: RedisArgument,\n capacity: number,\n options?: CfReserveOptions\n ) {\n parser.push('CF.RESERVE');\n parser.pushKey(key);\n parser.push(capacity.toString());\n\n if (options?.BUCKETSIZE !== undefined) {\n parser.push('BUCKETSIZE', options.BUCKETSIZE.toString());\n }\n\n if (options?.MAXITERATIONS !== undefined) {\n parser.push('MAXITERATIONS', options.MAXITERATIONS.toString());\n }\n\n if (options?.EXPANSION !== undefined) {\n parser.push('EXPANSION', options.EXPANSION.toString());\n }\n },\n transformReply: undefined as unknown as () => SimpleStringReply<'OK'>\n} as const satisfies Command;\n"]}
@@ -0,0 +1,12 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument, NumberReply, BlobStringReply, NullReply } from '@redis/client/dist/lib/RESP/types';
declare const _default: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, iterator: number) => void;
readonly transformReply: (this: void, reply: [NumberReply<number>, NullReply | BlobStringReply<string>]) => {
iterator: NumberReply<number>;
chunk: NullReply | BlobStringReply<string>;
};
};
export default _default;
//# sourceMappingURL=SCANDUMP.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"SCANDUMP.d.ts","sourceRoot":"","sources":["../../../../lib/commands/cuckoo/SCANDUMP.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAe,WAAW,EAAE,eAAe,EAAE,SAAS,EAAwB,MAAM,mCAAmC,CAAC;;;gDAIvH,aAAa,OAAO,aAAa,YAAY,MAAM;;;;;;AAF1E,wBAa6B"}
@@ -0,0 +1,17 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
IS_READ_ONLY: true,
parseCommand(parser, key, iterator) {
parser.push('CF.SCANDUMP');
parser.pushKey(key);
parser.push(iterator.toString());
},
transformReply(reply) {
return {
iterator: reply[0],
chunk: reply[1]
};
}
};
//# sourceMappingURL=SCANDUMP.js.map
@@ -0,0 +1 @@
{"version":3,"file":"SCANDUMP.js","sourceRoot":"","sources":["../../../../lib/commands/cuckoo/SCANDUMP.ts"],"names":[],"mappings":";;AAGA,kBAAe;IACb,YAAY,EAAE,IAAI;IAClB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,QAAgB;QACtE,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC3B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC;IACnC,CAAC;IACD,cAAc,CAAC,KAA2E;QACxF,OAAO;YACL,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;YAClB,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;SAChB,CAAC;IACJ,CAAC;CACyB,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { RedisArgument, TuplesReply, NumberReply, BlobStringReply, NullReply, UnwrapReply, Command } from '@redis/client/dist/lib/RESP/types';\n\nexport default {\n IS_READ_ONLY: true,\n parseCommand(parser: CommandParser, key: RedisArgument, iterator: number) {\n parser.push('CF.SCANDUMP');\n parser.pushKey(key);\n parser.push(iterator.toString());\n },\n transformReply(reply: UnwrapReply<TuplesReply<[NumberReply, BlobStringReply | NullReply]>>) {\n return {\n iterator: reply[0],\n chunk: reply[1]\n };\n }\n} as const satisfies Command;\n"]}
@@ -0,0 +1,294 @@
declare const _default: {
/**
* Adds an item to a Cuckoo Filter, creating the filter if it does not exist
* @param key - The name of the Cuckoo filter
* @param item - The item to add to the filter
*/
readonly ADD: {
readonly IS_READ_ONLY: false;
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;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
};
};
/**
* Adds an item to a Cuckoo Filter, creating the filter if it does not exist
* @param key - The name of the Cuckoo filter
* @param item - The item to add to the filter
*/
readonly add: {
readonly IS_READ_ONLY: false;
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;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
};
};
/**
* Adds an item to a Cuckoo Filter only if it does not exist
* @param key - The name of the Cuckoo filter
* @param item - The item to add to the filter if it doesn't exist
*/
readonly ADDNX: {
readonly IS_READ_ONLY: false;
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;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
};
};
/**
* Adds an item to a Cuckoo Filter only if it does not exist
* @param key - The name of the Cuckoo filter
* @param item - The item to add to the filter if it doesn't exist
*/
readonly addNX: {
readonly IS_READ_ONLY: false;
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;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
};
};
/**
* Returns the number of times an item appears in a Cuckoo Filter
* @param key - The name of the Cuckoo filter
* @param item - The item to count occurrences of
*/
readonly COUNT: {
readonly IS_READ_ONLY: true;
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;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number>;
};
/**
* Returns the number of times an item appears in a Cuckoo Filter
* @param key - The name of the Cuckoo filter
* @param item - The item to count occurrences of
*/
readonly count: {
readonly IS_READ_ONLY: true;
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;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number>;
};
/**
* Removes an item from a Cuckoo Filter if it exists
* @param key - The name of the Cuckoo filter
* @param item - The item to remove from the filter
*/
readonly DEL: {
readonly IS_READ_ONLY: false;
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;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
};
};
/**
* Removes an item from a Cuckoo Filter if it exists
* @param key - The name of the Cuckoo filter
* @param item - The item to remove from the filter
*/
readonly del: {
readonly IS_READ_ONLY: false;
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;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
};
};
/**
* Checks if an item exists in a Cuckoo Filter
* @param key - The name of the Cuckoo filter
* @param item - The item to check for existence
*/
readonly EXISTS: {
readonly IS_READ_ONLY: false;
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;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
};
};
/**
* Checks if an item exists in a Cuckoo Filter
* @param key - The name of the Cuckoo filter
* @param item - The item to check for existence
*/
readonly exists: {
readonly IS_READ_ONLY: false;
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;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
};
};
/**
* Returns detailed information about a Cuckoo Filter including size, buckets, filters count, items statistics and configuration
* @param key - The name of the Cuckoo filter to get information about
*/
readonly INFO: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument) => void;
readonly transformReply: {
readonly 2: (this: void, reply: [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 buckets">, 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<"Number of items deleted">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Bucket size">, 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").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Max iterations">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>], _: any, typeMapping?: import("@redis/client/dist/lib/RESP/types").TypeMapping | undefined) => import("./INFO").CfInfoReplyMap;
readonly 3: () => import("./INFO").CfInfoReplyMap;
};
};
/**
* Returns detailed information about a Cuckoo Filter including size, buckets, filters count, items statistics and configuration
* @param key - The name of the Cuckoo filter to get information about
*/
readonly info: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument) => void;
readonly transformReply: {
readonly 2: (this: void, reply: [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 buckets">, 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<"Number of items deleted">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Bucket size">, 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").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Max iterations">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>], _: any, typeMapping?: import("@redis/client/dist/lib/RESP/types").TypeMapping | undefined) => import("./INFO").CfInfoReplyMap;
readonly 3: () => import("./INFO").CfInfoReplyMap;
};
};
/**
* Adds one or more items to a Cuckoo Filter, creating it if it does not exist
* @param key - The name of the Cuckoo filter
* @param items - One or more items to add to the filter
* @param options - Optional parameters for filter creation
* @param options.CAPACITY - The number of entries intended to be added to the filter
* @param options.NOCREATE - If true, prevents automatic filter creation
*/
readonly INSERT: {
readonly IS_READ_ONLY: false;
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;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
};
};
/**
* Adds one or more items to a Cuckoo Filter, creating it if it does not exist
* @param key - The name of the Cuckoo filter
* @param items - One or more items to add to the filter
* @param options - Optional parameters for filter creation
* @param options.CAPACITY - The number of entries intended to be added to the filter
* @param options.NOCREATE - If true, prevents automatic filter creation
*/
readonly insert: {
readonly IS_READ_ONLY: false;
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;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
};
};
/**
* Adds one or more items to a Cuckoo Filter only if they do not exist yet, creating the filter if needed
* @param key - The name of the Cuckoo filter
* @param items - One or more items to add to the filter
* @param options - Optional parameters for filter creation
* @param options.CAPACITY - The number of entries intended to be added to the filter
* @param options.NOCREATE - If true, prevents automatic filter creation
*/
readonly INSERTNX: {
readonly IS_READ_ONLY: false;
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;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1 | -1>>;
};
/**
* Adds one or more items to a Cuckoo Filter only if they do not exist yet, creating the filter if needed
* @param key - The name of the Cuckoo filter
* @param items - One or more items to add to the filter
* @param options - Optional parameters for filter creation
* @param options.CAPACITY - The number of entries intended to be added to the filter
* @param options.NOCREATE - If true, prevents automatic filter creation
*/
readonly insertNX: {
readonly IS_READ_ONLY: false;
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;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1 | -1>>;
};
/**
* Restores a Cuckoo Filter chunk previously saved using SCANDUMP
* @param key - The name of the Cuckoo filter to restore
* @param iterator - Iterator value from the SCANDUMP command
* @param chunk - Data chunk from the SCANDUMP command
*/
readonly LOADCHUNK: {
readonly IS_READ_ONLY: false;
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;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
/**
* Restores a Cuckoo Filter chunk previously saved using SCANDUMP
* @param key - The name of the Cuckoo filter to restore
* @param iterator - Iterator value from the SCANDUMP command
* @param chunk - Data chunk from the SCANDUMP command
*/
readonly loadChunk: {
readonly IS_READ_ONLY: false;
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;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
/**
* Creates an empty Cuckoo Filter with specified capacity and parameters
* @param key - The name of the Cuckoo filter to create
* @param capacity - The number of entries intended to be added to the filter
* @param options - Optional parameters to tune the filter
* @param options.BUCKETSIZE - Number of items in each bucket
* @param options.MAXITERATIONS - Maximum number of iterations before declaring filter full
* @param options.EXPANSION - Number of additional buckets per expansion
*/
readonly RESERVE: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, capacity: number, options?: import("./RESERVE").CfReserveOptions | undefined) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
/**
* Creates an empty Cuckoo Filter with specified capacity and parameters
* @param key - The name of the Cuckoo filter to create
* @param capacity - The number of entries intended to be added to the filter
* @param options - Optional parameters to tune the filter
* @param options.BUCKETSIZE - Number of items in each bucket
* @param options.MAXITERATIONS - Maximum number of iterations before declaring filter full
* @param options.EXPANSION - Number of additional buckets per expansion
*/
readonly reserve: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, capacity: number, options?: import("./RESERVE").CfReserveOptions | undefined) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
/**
* Begins an incremental save of a Cuckoo Filter. This is useful for large filters that can't be saved at once
* @param key - The name of the Cuckoo filter to save
* @param iterator - Iterator value; Start at 0, and use the iterator from the response for the next chunk
*/
readonly SCANDUMP: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, iterator: number) => void; /**
* Adds an item to a Cuckoo Filter, creating the filter if it does not exist
* @param key - The name of the Cuckoo filter
* @param item - The item to add to the filter
*/
readonly transformReply: (this: void, reply: [import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>]) => {
iterator: import("@redis/client/dist/lib/RESP/types").NumberReply<number>;
chunk: import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>;
};
};
/**
* Begins an incremental save of a Cuckoo Filter. This is useful for large filters that can't be saved at once
* @param key - The name of the Cuckoo filter to save
* @param iterator - Iterator value; Start at 0, and use the iterator from the response for the next chunk
*/
readonly scanDump: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, iterator: number) => void; /**
* Adds an item to a Cuckoo Filter, creating the filter if it does not exist
* @param key - The name of the Cuckoo filter
* @param item - The item to add to the filter
*/
readonly transformReply: (this: void, reply: [import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>]) => {
iterator: import("@redis/client/dist/lib/RESP/types").NumberReply<number>;
chunk: import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>;
};
};
};
export default _default;
//# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/commands/cuckoo/index.ts"],"names":[],"mappings":";IAcE;;;;OAIG;;;;;;;;;IAEH;;;;OAIG;;;;;;;;;IAEH;;;;OAIG;;;;;;;;;IAEH;;;;OAIG;;;;;;;;;IAEH;;;;OAIG;;;;;;IAEH;;;;OAIG;;;;;;IAEH;;;;OAIG;;;;;;;;;IAEH;;;;OAIG;;;;;;;;;IAEH;;;;OAIG;;;;;;;;;IAEH;;;;OAIG;;;;;;;;;IAEH;;;OAGG;;;;;;;;;IAEH;;;OAGG;;;;;;;;;IAEH;;;;;;;OAOG;;;;;;;;;IAEH;;;;;;;OAOG;;;;;;;;;IAEH;;;;;;;OAOG;;;;;;IAEH;;;;;;;OAOG;;;;;;IAEH;;;;;OAKG;;;;;;IAEH;;;;;OAKG;;;;;;IAEH;;;;;;;;OAQG;;;;;;IAEH;;;;;;;;OAQG;;;;;;IAEH;;;;OAIG;;;sLAhJH;;;;WAIG;;;;;;IA8IH;;;;OAIG;;;sLAtJH;;;;WAIG;;;;;;;AALL,wBAyJmC"}
@@ -0,0 +1,171 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const ADD_1 = __importDefault(require("./ADD"));
const ADDNX_1 = __importDefault(require("./ADDNX"));
const COUNT_1 = __importDefault(require("./COUNT"));
const DEL_1 = __importDefault(require("./DEL"));
const EXISTS_1 = __importDefault(require("./EXISTS"));
const INFO_1 = __importDefault(require("./INFO"));
const INSERT_1 = __importDefault(require("./INSERT"));
const INSERTNX_1 = __importDefault(require("./INSERTNX"));
const LOADCHUNK_1 = __importDefault(require("./LOADCHUNK"));
const RESERVE_1 = __importDefault(require("./RESERVE"));
const SCANDUMP_1 = __importDefault(require("./SCANDUMP"));
exports.default = {
/**
* Adds an item to a Cuckoo Filter, creating the filter if it does not exist
* @param key - The name of the Cuckoo filter
* @param item - The item to add to the filter
*/
ADD: ADD_1.default,
/**
* Adds an item to a Cuckoo Filter, creating the filter if it does not exist
* @param key - The name of the Cuckoo filter
* @param item - The item to add to the filter
*/
add: ADD_1.default,
/**
* Adds an item to a Cuckoo Filter only if it does not exist
* @param key - The name of the Cuckoo filter
* @param item - The item to add to the filter if it doesn't exist
*/
ADDNX: ADDNX_1.default,
/**
* Adds an item to a Cuckoo Filter only if it does not exist
* @param key - The name of the Cuckoo filter
* @param item - The item to add to the filter if it doesn't exist
*/
addNX: ADDNX_1.default,
/**
* Returns the number of times an item appears in a Cuckoo Filter
* @param key - The name of the Cuckoo filter
* @param item - The item to count occurrences of
*/
COUNT: COUNT_1.default,
/**
* Returns the number of times an item appears in a Cuckoo Filter
* @param key - The name of the Cuckoo filter
* @param item - The item to count occurrences of
*/
count: COUNT_1.default,
/**
* Removes an item from a Cuckoo Filter if it exists
* @param key - The name of the Cuckoo filter
* @param item - The item to remove from the filter
*/
DEL: DEL_1.default,
/**
* Removes an item from a Cuckoo Filter if it exists
* @param key - The name of the Cuckoo filter
* @param item - The item to remove from the filter
*/
del: DEL_1.default,
/**
* Checks if an item exists in a Cuckoo Filter
* @param key - The name of the Cuckoo filter
* @param item - The item to check for existence
*/
EXISTS: EXISTS_1.default,
/**
* Checks if an item exists in a Cuckoo Filter
* @param key - The name of the Cuckoo filter
* @param item - The item to check for existence
*/
exists: EXISTS_1.default,
/**
* Returns detailed information about a Cuckoo Filter including size, buckets, filters count, items statistics and configuration
* @param key - The name of the Cuckoo filter to get information about
*/
INFO: INFO_1.default,
/**
* Returns detailed information about a Cuckoo Filter including size, buckets, filters count, items statistics and configuration
* @param key - The name of the Cuckoo filter to get information about
*/
info: INFO_1.default,
/**
* Adds one or more items to a Cuckoo Filter, creating it if it does not exist
* @param key - The name of the Cuckoo filter
* @param items - One or more items to add to the filter
* @param options - Optional parameters for filter creation
* @param options.CAPACITY - The number of entries intended to be added to the filter
* @param options.NOCREATE - If true, prevents automatic filter creation
*/
INSERT: INSERT_1.default,
/**
* Adds one or more items to a Cuckoo Filter, creating it if it does not exist
* @param key - The name of the Cuckoo filter
* @param items - One or more items to add to the filter
* @param options - Optional parameters for filter creation
* @param options.CAPACITY - The number of entries intended to be added to the filter
* @param options.NOCREATE - If true, prevents automatic filter creation
*/
insert: INSERT_1.default,
/**
* Adds one or more items to a Cuckoo Filter only if they do not exist yet, creating the filter if needed
* @param key - The name of the Cuckoo filter
* @param items - One or more items to add to the filter
* @param options - Optional parameters for filter creation
* @param options.CAPACITY - The number of entries intended to be added to the filter
* @param options.NOCREATE - If true, prevents automatic filter creation
*/
INSERTNX: INSERTNX_1.default,
/**
* Adds one or more items to a Cuckoo Filter only if they do not exist yet, creating the filter if needed
* @param key - The name of the Cuckoo filter
* @param items - One or more items to add to the filter
* @param options - Optional parameters for filter creation
* @param options.CAPACITY - The number of entries intended to be added to the filter
* @param options.NOCREATE - If true, prevents automatic filter creation
*/
insertNX: INSERTNX_1.default,
/**
* Restores a Cuckoo Filter chunk previously saved using SCANDUMP
* @param key - The name of the Cuckoo filter to restore
* @param iterator - Iterator value from the SCANDUMP command
* @param chunk - Data chunk from the SCANDUMP command
*/
LOADCHUNK: LOADCHUNK_1.default,
/**
* Restores a Cuckoo Filter chunk previously saved using SCANDUMP
* @param key - The name of the Cuckoo filter to restore
* @param iterator - Iterator value from the SCANDUMP command
* @param chunk - Data chunk from the SCANDUMP command
*/
loadChunk: LOADCHUNK_1.default,
/**
* Creates an empty Cuckoo Filter with specified capacity and parameters
* @param key - The name of the Cuckoo filter to create
* @param capacity - The number of entries intended to be added to the filter
* @param options - Optional parameters to tune the filter
* @param options.BUCKETSIZE - Number of items in each bucket
* @param options.MAXITERATIONS - Maximum number of iterations before declaring filter full
* @param options.EXPANSION - Number of additional buckets per expansion
*/
RESERVE: RESERVE_1.default,
/**
* Creates an empty Cuckoo Filter with specified capacity and parameters
* @param key - The name of the Cuckoo filter to create
* @param capacity - The number of entries intended to be added to the filter
* @param options - Optional parameters to tune the filter
* @param options.BUCKETSIZE - Number of items in each bucket
* @param options.MAXITERATIONS - Maximum number of iterations before declaring filter full
* @param options.EXPANSION - Number of additional buckets per expansion
*/
reserve: RESERVE_1.default,
/**
* Begins an incremental save of a Cuckoo Filter. This is useful for large filters that can't be saved at once
* @param key - The name of the Cuckoo filter to save
* @param iterator - Iterator value; Start at 0, and use the iterator from the response for the next chunk
*/
SCANDUMP: SCANDUMP_1.default,
/**
* Begins an incremental save of a Cuckoo Filter. This is useful for large filters that can't be saved at once
* @param key - The name of the Cuckoo filter to save
* @param iterator - Iterator value; Start at 0, and use the iterator from the response for the next chunk
*/
scanDump: SCANDUMP_1.default
};
//# sourceMappingURL=index.js.map
File diff suppressed because one or more lines are too long
@@ -0,0 +1,660 @@
declare const _default: {
readonly bf: {
readonly ADD: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, item: import("@redis/client").RedisArgument) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
};
};
readonly add: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, item: import("@redis/client").RedisArgument) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
};
};
readonly CARD: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number>;
};
readonly card: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number>;
};
readonly EXISTS: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, item: import("@redis/client").RedisArgument) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
};
};
readonly exists: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, item: import("@redis/client").RedisArgument) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
};
};
readonly INFO: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument) => void;
readonly transformReply: {
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").TypeMapping | undefined) => import("./bloom/INFO").BfInfoReplyMap;
readonly 3: () => import("./bloom/INFO").BfInfoReplyMap;
};
};
readonly info: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument) => void;
readonly transformReply: {
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").TypeMapping | undefined) => import("./bloom/INFO").BfInfoReplyMap;
readonly 3: () => import("./bloom/INFO").BfInfoReplyMap;
};
};
readonly INSERT: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, items: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument, options?: import("./bloom/INSERT").BfInsertOptions | undefined) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
};
};
readonly insert: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, items: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument, options?: import("./bloom/INSERT").BfInsertOptions | undefined) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
};
};
readonly LOADCHUNK: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, iterator: number, chunk: import("@redis/client").RedisArgument) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
readonly loadChunk: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, iterator: number, chunk: import("@redis/client").RedisArgument) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
readonly MADD: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, items: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
};
};
readonly mAdd: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, items: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
};
};
readonly MEXISTS: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, items: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
};
};
readonly mExists: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, items: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
};
};
readonly RESERVE: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, errorRate: number, capacity: number, options?: import("./bloom/RESERVE").BfReserveOptions | undefined) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
readonly reserve: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, errorRate: number, capacity: number, options?: import("./bloom/RESERVE").BfReserveOptions | undefined) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
readonly SCANDUMP: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, iterator: number) => void;
readonly transformReply: (this: void, reply: [import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>]) => {
iterator: import("@redis/client/dist/lib/RESP/types").NumberReply<number>;
chunk: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>;
};
};
readonly scanDump: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, iterator: number) => void;
readonly transformReply: (this: void, reply: [import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>]) => {
iterator: import("@redis/client/dist/lib/RESP/types").NumberReply<number>;
chunk: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>;
};
};
};
readonly cms: {
readonly INCRBY: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, items: import("./count-min-sketch/INCRBY").BfIncrByItem | import("./count-min-sketch/INCRBY").BfIncrByItem[]) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
};
readonly incrBy: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, items: import("./count-min-sketch/INCRBY").BfIncrByItem | import("./count-min-sketch/INCRBY").BfIncrByItem[]) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
};
readonly INFO: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument) => void;
readonly transformReply: {
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").TypeMapping | undefined) => import("./count-min-sketch/INFO").CmsInfoReply;
readonly 3: () => import("./count-min-sketch/INFO").CmsInfoReply;
};
};
readonly info: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument) => void;
readonly transformReply: {
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").TypeMapping | undefined) => import("./count-min-sketch/INFO").CmsInfoReply;
readonly 3: () => import("./count-min-sketch/INFO").CmsInfoReply;
};
};
readonly INITBYDIM: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, width: number, depth: number) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
readonly initByDim: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, width: number, depth: number) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
readonly INITBYPROB: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, error: number, probability: number) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
readonly initByProb: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, error: number, probability: number) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
readonly MERGE: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, destination: import("@redis/client").RedisArgument, source: import("./count-min-sketch/MERGE").BfMergeSketches) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
readonly merge: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, destination: import("@redis/client").RedisArgument, source: import("./count-min-sketch/MERGE").BfMergeSketches) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
readonly QUERY: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, items: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
};
readonly query: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, items: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
};
};
readonly cf: {
readonly ADD: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, item: import("@redis/client").RedisArgument) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
};
};
readonly add: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, item: import("@redis/client").RedisArgument) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
};
};
readonly ADDNX: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, item: import("@redis/client").RedisArgument) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
};
};
readonly addNX: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, item: import("@redis/client").RedisArgument) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
};
};
readonly COUNT: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, item: import("@redis/client").RedisArgument) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number>;
};
readonly count: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, item: import("@redis/client").RedisArgument) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number>;
};
readonly DEL: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, item: import("@redis/client").RedisArgument) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
};
};
readonly del: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, item: import("@redis/client").RedisArgument) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
};
};
readonly EXISTS: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, item: import("@redis/client").RedisArgument) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
};
};
readonly exists: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, item: import("@redis/client").RedisArgument) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>) => boolean;
3: () => import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>;
};
};
readonly INFO: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument) => void;
readonly transformReply: {
readonly 2: (this: void, reply: [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 buckets">, 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<"Number of items deleted">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Bucket size">, 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").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Max iterations">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>], _: any, typeMapping?: import("@redis/client").TypeMapping | undefined) => import("./cuckoo/INFO").CfInfoReplyMap;
readonly 3: () => import("./cuckoo/INFO").CfInfoReplyMap;
};
};
readonly info: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument) => void;
readonly transformReply: {
readonly 2: (this: void, reply: [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 buckets">, 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<"Number of items deleted">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Bucket size">, 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").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Max iterations">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>], _: any, typeMapping?: import("@redis/client").TypeMapping | undefined) => import("./cuckoo/INFO").CfInfoReplyMap;
readonly 3: () => import("./cuckoo/INFO").CfInfoReplyMap;
};
};
readonly INSERT: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, items: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument, options?: import("./cuckoo/INSERT").CfInsertOptions | undefined) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
};
};
readonly insert: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, items: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument, options?: import("./cuckoo/INSERT").CfInsertOptions | undefined) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
};
};
readonly INSERTNX: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, items: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument, options?: import("./cuckoo/INSERT").CfInsertOptions | undefined) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1 | -1>>;
};
readonly insertNX: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, items: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument, options?: import("./cuckoo/INSERT").CfInsertOptions | undefined) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1 | -1>>;
};
readonly LOADCHUNK: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, iterator: number, chunk: import("@redis/client").RedisArgument) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
readonly loadChunk: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, iterator: number, chunk: import("@redis/client").RedisArgument) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
readonly RESERVE: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, capacity: number, options?: import("./cuckoo/RESERVE").CfReserveOptions | undefined) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
readonly reserve: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, capacity: number, options?: import("./cuckoo/RESERVE").CfReserveOptions | undefined) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
readonly SCANDUMP: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, iterator: number) => void;
readonly transformReply: (this: void, reply: [import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>]) => {
iterator: import("@redis/client/dist/lib/RESP/types").NumberReply<number>;
chunk: import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>;
};
};
readonly scanDump: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, iterator: number) => void;
readonly transformReply: (this: void, reply: [import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>]) => {
iterator: import("@redis/client/dist/lib/RESP/types").NumberReply<number>;
chunk: import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>;
};
};
};
readonly tDigest: {
readonly ADD: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, values: number[]) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
readonly add: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, values: number[]) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
readonly BYRANK: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, ranks: number[]) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>[], preserve?: any, typeMapping?: import("@redis/client").TypeMapping | undefined) => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
};
};
readonly byRank: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, ranks: number[]) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>[], preserve?: any, typeMapping?: import("@redis/client").TypeMapping | undefined) => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
};
};
readonly BYREVRANK: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, ranks: number[]) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>[], preserve?: any, typeMapping?: import("@redis/client").TypeMapping | undefined) => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
};
};
readonly byRevRank: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, ranks: number[]) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>[], preserve?: any, typeMapping?: import("@redis/client").TypeMapping | undefined) => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
};
};
readonly CDF: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, values: number[]) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>[], preserve?: any, typeMapping?: import("@redis/client").TypeMapping | undefined) => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
};
};
readonly cdf: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, values: number[]) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>[], preserve?: any, typeMapping?: import("@redis/client").TypeMapping | undefined) => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
};
};
readonly CREATE: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, options?: import("./t-digest/CREATE").TDigestCreateOptions | undefined) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
readonly create: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, options?: import("./t-digest/CREATE").TDigestCreateOptions | undefined) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
readonly INFO: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument) => void;
readonly transformReply: {
readonly 2: (this: void, reply: [import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Compression">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, 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<"Merged nodes">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Unmerged nodes">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Merged weight">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Unmerged weight">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Observations">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Total compressions">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Memory usage">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>], _: any, typeMapping?: import("@redis/client").TypeMapping | undefined) => import("./t-digest/INFO").TdInfoReplyMap;
readonly 3: () => import("./t-digest/INFO").TdInfoReplyMap;
};
};
readonly info: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument) => void;
readonly transformReply: {
readonly 2: (this: void, reply: [import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Compression">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, 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<"Merged nodes">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Unmerged nodes">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Merged weight">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Unmerged weight">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Observations">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Total compressions">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Memory usage">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>], _: any, typeMapping?: import("@redis/client").TypeMapping | undefined) => import("./t-digest/INFO").TdInfoReplyMap;
readonly 3: () => import("./t-digest/INFO").TdInfoReplyMap;
};
};
readonly MAX: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>, preserve?: any, typeMapping?: import("@redis/client").TypeMapping | undefined) => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
3: () => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
};
};
readonly max: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>, preserve?: any, typeMapping?: import("@redis/client").TypeMapping | undefined) => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
3: () => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
};
};
readonly MERGE: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, destination: import("@redis/client").RedisArgument, source: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument, options?: import("./t-digest/MERGE").TDigestMergeOptions | undefined) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
readonly merge: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, destination: import("@redis/client").RedisArgument, source: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument, options?: import("./t-digest/MERGE").TDigestMergeOptions | undefined) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
readonly MIN: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>, preserve?: any, typeMapping?: import("@redis/client").TypeMapping | undefined) => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
3: () => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
};
};
readonly min: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>, preserve?: any, typeMapping?: import("@redis/client").TypeMapping | undefined) => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
3: () => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
};
};
readonly QUANTILE: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, quantiles: number[]) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>[], preserve?: any, typeMapping?: import("@redis/client").TypeMapping | undefined) => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
};
};
readonly quantile: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, quantiles: number[]) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>[], preserve?: any, typeMapping?: import("@redis/client").TypeMapping | undefined) => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
};
};
readonly RANK: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, values: number[]) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
};
readonly rank: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, values: number[]) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
};
readonly RESET: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
readonly reset: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
readonly REVRANK: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, values: number[]) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
};
readonly revRank: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, values: number[]) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
};
readonly TRIMMED_MEAN: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, lowCutPercentile: number, highCutPercentile: number) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>, preserve?: any, typeMapping?: import("@redis/client").TypeMapping | undefined) => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
3: () => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
};
};
readonly trimmedMean: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, lowCutPercentile: number, highCutPercentile: number) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>, preserve?: any, typeMapping?: import("@redis/client").TypeMapping | undefined) => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
3: () => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
};
};
};
readonly topK: {
readonly ADD: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, items: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>>;
};
readonly add: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, items: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>>;
};
readonly COUNT: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, items: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
};
readonly count: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, items: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
};
readonly INCRBY: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, items: import("./top-k/INCRBY").TopKIncrByItem | import("./top-k/INCRBY").TopKIncrByItem[]) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").SimpleStringReply<string>>;
};
readonly incrBy: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, items: import("./top-k/INCRBY").TopKIncrByItem | import("./top-k/INCRBY").TopKIncrByItem[]) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").SimpleStringReply<string>>;
};
readonly INFO: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument) => void;
readonly transformReply: {
readonly 2: (reply: [import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"k">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, 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<"decay">, import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>], preserve?: unknown, typeMapping?: import("@redis/client").TypeMapping | undefined) => import("./top-k/INFO").TopKInfoReplyMap;
readonly 3: () => import("./top-k/INFO").TopKInfoReplyMap;
};
};
readonly info: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument) => void;
readonly transformReply: {
readonly 2: (reply: [import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"k">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, 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<"decay">, import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>], preserve?: unknown, typeMapping?: import("@redis/client").TypeMapping | undefined) => import("./top-k/INFO").TopKInfoReplyMap;
readonly 3: () => import("./top-k/INFO").TopKInfoReplyMap;
};
};
readonly LIST_WITHCOUNT: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument) => void;
readonly transformReply: (this: void, rawReply: (import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>)[]) => {
item: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>;
count: import("@redis/client/dist/lib/RESP/types").NumberReply<number>;
}[];
};
readonly listWithCount: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument) => void;
readonly transformReply: (this: void, rawReply: (import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>)[]) => {
item: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>;
count: import("@redis/client/dist/lib/RESP/types").NumberReply<number>;
}[];
};
readonly LIST: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>>;
};
readonly list: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>>;
};
readonly QUERY: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, items: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
};
};
readonly query: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, items: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<0 | 1>>) => boolean[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").BooleanReply<boolean>>;
};
};
readonly RESERVE: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, topK: number, options?: import("./top-k/RESERVE").TopKReserveOptions | undefined) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
readonly reserve: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client").RedisArgument, topK: number, options?: import("./top-k/RESERVE").TopKReserveOptions | undefined) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
};
};
export default _default;
//# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,wBAMkC"}
@@ -0,0 +1,18 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const bloom_1 = __importDefault(require("./bloom"));
const count_min_sketch_1 = __importDefault(require("./count-min-sketch"));
const cuckoo_1 = __importDefault(require("./cuckoo"));
const t_digest_1 = __importDefault(require("./t-digest"));
const top_k_1 = __importDefault(require("./top-k"));
exports.default = {
bf: bloom_1.default,
cms: count_min_sketch_1.default,
cf: cuckoo_1.default,
tDigest: t_digest_1.default,
topK: top_k_1.default
};
//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/commands/index.ts"],"names":[],"mappings":";;;;;AACA,oDAAyB;AACzB,0EAAqC;AACrC,sDAA0B;AAC1B,0DAAiC;AACjC,oDAA2B;AAE3B,kBAAe;IACb,EAAE,EAAF,eAAE;IACF,GAAG,EAAH,0BAAG;IACH,EAAE,EAAF,gBAAE;IACF,OAAO,EAAP,kBAAO;IACP,IAAI,EAAJ,eAAI;CAC2B,CAAC","sourcesContent":["import { RedisModules } from '@redis/client';\nimport bf from './bloom';\nimport cms from './count-min-sketch';\nimport cf from './cuckoo';\nimport tDigest from './t-digest';\nimport topK from './top-k';\n\nexport default {\n bf,\n cms,\n cf,\n tDigest,\n topK\n} as const satisfies RedisModules;\n"]}
@@ -0,0 +1,9 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { SimpleStringReply, RedisArgument } from '@redis/client/dist/lib/RESP/types';
declare const _default: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, values: Array<number>) => void;
readonly transformReply: () => SimpleStringReply<'OK'>;
};
export default _default;
//# sourceMappingURL=ADD.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"ADD.d.ts","sourceRoot":"","sources":["../../../../lib/commands/t-digest/ADD.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAW,aAAa,EAAE,MAAM,mCAAmC,CAAC;;;gDAIvE,aAAa,OAAO,aAAa,UAAU,MAAM,MAAM,CAAC;mCAQ/B,kBAAkB,IAAI,CAAC;;AAVvE,wBAW6B"}
@@ -0,0 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
IS_READ_ONLY: false,
parseCommand(parser, key, values) {
parser.push('TDIGEST.ADD');
parser.pushKey(key);
for (const value of values) {
parser.push(value.toString());
}
},
transformReply: undefined
};
//# sourceMappingURL=ADD.js.map
@@ -0,0 +1 @@
{"version":3,"file":"ADD.js","sourceRoot":"","sources":["../../../../lib/commands/t-digest/ADD.ts"],"names":[],"mappings":";;AAGA,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,MAAqB;QAC3E,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC3B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAEpB,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;YAC3B,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;QAChC,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAAqD;CAC3C,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { SimpleStringReply, Command, RedisArgument } from '@redis/client/dist/lib/RESP/types';\n\nexport default {\n IS_READ_ONLY: false,\n parseCommand(parser: CommandParser, key: RedisArgument, values: Array<number>) {\n parser.push('TDIGEST.ADD');\n parser.pushKey(key);\n\n for (const value of values) {\n parser.push(value.toString());\n }\n },\n transformReply: undefined as unknown as () => SimpleStringReply<'OK'>\n} as const satisfies Command;\n"]}
@@ -0,0 +1,13 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument } from '@redis/client/dist/lib/RESP/types';
export declare function transformByRankArguments(parser: CommandParser, key: RedisArgument, ranks: Array<number>): void;
declare const _default: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, ranks: number[]) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>[], preserve?: any, typeMapping?: import("@redis/client/dist/lib/RESP/types").TypeMapping | undefined) => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
};
};
export default _default;
//# sourceMappingURL=BYRANK.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"BYRANK.d.ts","sourceRoot":"","sources":["../../../../lib/commands/t-digest/BYRANK.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAW,MAAM,mCAAmC,CAAC;AAG3E,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,aAAa,EACrB,GAAG,EAAE,aAAa,EAClB,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,QAOrB;;;;;;;;;AAED,wBAO6B"}
@@ -0,0 +1,20 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformByRankArguments = void 0;
const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
function transformByRankArguments(parser, key, ranks) {
parser.pushKey(key);
for (const rank of ranks) {
parser.push(rank.toString());
}
}
exports.transformByRankArguments = transformByRankArguments;
exports.default = {
IS_READ_ONLY: true,
parseCommand(...args) {
args[0].push('TDIGEST.BYRANK');
transformByRankArguments(...args);
},
transformReply: generic_transformers_1.transformDoubleArrayReply
};
//# sourceMappingURL=BYRANK.js.map
@@ -0,0 +1 @@
{"version":3,"file":"BYRANK.js","sourceRoot":"","sources":["../../../../lib/commands/t-digest/BYRANK.ts"],"names":[],"mappings":";;;AAEA,+FAAiG;AAEjG,SAAgB,wBAAwB,CACtC,MAAqB,EACrB,GAAkB,EAClB,KAAoB;IAEpB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAEpB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC/B,CAAC;AACH,CAAC;AAVD,4DAUC;AAED,kBAAe;IACb,YAAY,EAAE,IAAI;IAClB,YAAY,CAAC,GAAG,IAAiD;QAC/D,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAC/B,wBAAwB,CAAC,GAAG,IAAI,CAAC,CAAC;IACpC,CAAC;IACD,cAAc,EAAE,gDAAyB;CACf,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { RedisArgument, Command } from '@redis/client/dist/lib/RESP/types';\nimport { transformDoubleArrayReply } from '@redis/client/dist/lib/commands/generic-transformers';\n\nexport function transformByRankArguments(\n parser: CommandParser, \n key: RedisArgument,\n ranks: Array<number>\n) {\n parser.pushKey(key);\n\n for (const rank of ranks) {\n parser.push(rank.toString());\n }\n}\n\nexport default {\n IS_READ_ONLY: true,\n parseCommand(...args: Parameters<typeof transformByRankArguments>) {\n args[0].push('TDIGEST.BYRANK');\n transformByRankArguments(...args);\n },\n transformReply: transformDoubleArrayReply\n} as const satisfies Command;\n\n"]}
@@ -0,0 +1,16 @@
/**
* Returns value estimates for one or more ranks in a t-digest sketch, starting from highest rank
* @param parser - The command parser
* @param key - The name of the t-digest sketch
* @param ranks - Array of ranks to get value estimates for (descending order)
*/
declare const _default: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, ranks: number[]) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>[], preserve?: any, typeMapping?: import("@redis/client/dist/lib/RESP/types").TypeMapping | undefined) => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
};
};
export default _default;
//# sourceMappingURL=BYREVRANK.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"BYREVRANK.d.ts","sourceRoot":"","sources":["../../../../lib/commands/t-digest/BYREVRANK.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;;;;;;;;;AACH,wBAO6B"}
@@ -0,0 +1,41 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const BYRANK_1 = __importStar(require("./BYRANK"));
/**
* Returns value estimates for one or more ranks in a t-digest sketch, starting from highest rank
* @param parser - The command parser
* @param key - The name of the t-digest sketch
* @param ranks - Array of ranks to get value estimates for (descending order)
*/
exports.default = {
IS_READ_ONLY: BYRANK_1.default.IS_READ_ONLY,
parseCommand(...args) {
args[0].push('TDIGEST.BYREVRANK');
(0, BYRANK_1.transformByRankArguments)(...args);
},
transformReply: BYRANK_1.default.transformReply
};
//# sourceMappingURL=BYREVRANK.js.map
@@ -0,0 +1 @@
{"version":3,"file":"BYREVRANK.js","sourceRoot":"","sources":["../../../../lib/commands/t-digest/BYREVRANK.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,mDAA4D;AAE5D;;;;;GAKG;AACH,kBAAe;IACb,YAAY,EAAE,gBAAM,CAAC,YAAY;IACjC,YAAY,CAAC,GAAG,IAAiD;QAC/D,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;QAClC,IAAA,iCAAwB,EAAC,GAAG,IAAI,CAAC,CAAC;IACpC,CAAC;IACD,cAAc,EAAE,gBAAM,CAAC,cAAc;CACX,CAAC","sourcesContent":["import { Command } from '@redis/client/dist/lib/RESP/types';\nimport BYRANK, { transformByRankArguments } from './BYRANK';\n\n/**\n * Returns value estimates for one or more ranks in a t-digest sketch, starting from highest rank\n * @param parser - The command parser\n * @param key - The name of the t-digest sketch\n * @param ranks - Array of ranks to get value estimates for (descending order)\n */\nexport default {\n IS_READ_ONLY: BYRANK.IS_READ_ONLY,\n parseCommand(...args: Parameters<typeof transformByRankArguments>) {\n args[0].push('TDIGEST.BYREVRANK');\n transformByRankArguments(...args);\n },\n transformReply: BYRANK.transformReply\n} as const satisfies Command;\n"]}
@@ -0,0 +1,12 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument } from '@redis/client/dist/lib/RESP/types';
declare const _default: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, values: Array<number>) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>[], preserve?: any, typeMapping?: import("@redis/client/dist/lib/RESP/types").TypeMapping | undefined) => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
};
};
export default _default;
//# sourceMappingURL=CDF.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"CDF.d.ts","sourceRoot":"","sources":["../../../../lib/commands/t-digest/CDF.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAW,MAAM,mCAAmC,CAAC;;;gDAKpD,aAAa,OAAO,aAAa,UAAU,MAAM,MAAM,CAAC;;;;;;AAF/E,wBAW6B"}
@@ -0,0 +1,15 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
exports.default = {
IS_READ_ONLY: true,
parseCommand(parser, key, values) {
parser.push('TDIGEST.CDF');
parser.pushKey(key);
for (const item of values) {
parser.push(item.toString());
}
},
transformReply: generic_transformers_1.transformDoubleArrayReply
};
//# sourceMappingURL=CDF.js.map
@@ -0,0 +1 @@
{"version":3,"file":"CDF.js","sourceRoot":"","sources":["../../../../lib/commands/t-digest/CDF.ts"],"names":[],"mappings":";;AAEA,+FAAiG;AAEjG,kBAAe;IACb,YAAY,EAAE,IAAI;IAClB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,MAAqB;QAC3E,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC3B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAEpB,KAAK,MAAM,IAAI,IAAI,MAAM,EAAE,CAAC;YAC1B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC/B,CAAC;IACH,CAAC;IACD,cAAc,EAAE,gDAAyB;CACf,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { RedisArgument, Command } from '@redis/client/dist/lib/RESP/types';\nimport { transformDoubleArrayReply } from '@redis/client/dist/lib/commands/generic-transformers';\n\nexport default {\n IS_READ_ONLY: true,\n parseCommand(parser: CommandParser, key: RedisArgument, values: Array<number>) {\n parser.push('TDIGEST.CDF');\n parser.pushKey(key);\n\n for (const item of values) {\n parser.push(item.toString());\n }\n },\n transformReply: transformDoubleArrayReply\n} as const satisfies Command;\n"]}
@@ -0,0 +1,12 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument, SimpleStringReply } from '@redis/client/dist/lib/RESP/types';
export interface TDigestCreateOptions {
COMPRESSION?: number;
}
declare const _default: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, options?: TDigestCreateOptions) => void;
readonly transformReply: () => SimpleStringReply<'OK'>;
};
export default _default;
//# sourceMappingURL=CREATE.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"CREATE.d.ts","sourceRoot":"","sources":["../../../../lib/commands/t-digest/CREATE.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAW,MAAM,mCAAmC,CAAC;AAE9F,MAAM,WAAW,oBAAoB;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;;;gDAIsB,aAAa,OAAO,aAAa,YAAY,oBAAoB;mCAQxC,kBAAkB,IAAI,CAAC;;AAVvE,wBAW6B"}
@@ -0,0 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
IS_READ_ONLY: false,
parseCommand(parser, key, options) {
parser.push('TDIGEST.CREATE');
parser.pushKey(key);
if (options?.COMPRESSION !== undefined) {
parser.push('COMPRESSION', options.COMPRESSION.toString());
}
},
transformReply: undefined
};
//# sourceMappingURL=CREATE.js.map
@@ -0,0 +1 @@
{"version":3,"file":"CREATE.js","sourceRoot":"","sources":["../../../../lib/commands/t-digest/CREATE.ts"],"names":[],"mappings":";;AAOA,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,OAA8B;QACpF,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAC9B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAEpB,IAAI,OAAO,EAAE,WAAW,KAAK,SAAS,EAAE,CAAC;YACvC,MAAM,CAAC,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC7D,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAAqD;CAC3C,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { RedisArgument, SimpleStringReply, Command } from '@redis/client/dist/lib/RESP/types';\n\nexport interface TDigestCreateOptions {\n COMPRESSION?: number;\n}\n\nexport default {\n IS_READ_ONLY: false,\n parseCommand(parser: CommandParser, key: RedisArgument, options?: TDigestCreateOptions) {\n parser.push('TDIGEST.CREATE');\n parser.pushKey(key);\n \n if (options?.COMPRESSION !== undefined) {\n parser.push('COMPRESSION', options.COMPRESSION.toString());\n }\n },\n transformReply: undefined as unknown as () => SimpleStringReply<'OK'>\n} as const satisfies Command;\n"]}
@@ -0,0 +1,50 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument, NumberReply, TuplesToMapReply, SimpleStringReply, TypeMapping } from '@redis/client/dist/lib/RESP/types';
export type TdInfoReplyMap = TuplesToMapReply<[
[
SimpleStringReply<'Compression'>,
NumberReply
],
[
SimpleStringReply<'Capacity'>,
NumberReply
],
[
SimpleStringReply<'Merged nodes'>,
NumberReply
],
[
SimpleStringReply<'Unmerged nodes'>,
NumberReply
],
[
SimpleStringReply<'Merged weight'>,
NumberReply
],
[
SimpleStringReply<'Unmerged weight'>,
NumberReply
],
[
SimpleStringReply<'Observations'>,
NumberReply
],
[
SimpleStringReply<'Total compressions'>,
NumberReply
],
[
SimpleStringReply<'Memory usage'>,
NumberReply
]
]>;
declare const _default: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument) => void;
readonly transformReply: {
readonly 2: (this: void, reply: [SimpleStringReply<"Compression">, NumberReply<number>, SimpleStringReply<"Capacity">, NumberReply<number>, SimpleStringReply<"Merged nodes">, NumberReply<number>, SimpleStringReply<"Unmerged nodes">, NumberReply<number>, SimpleStringReply<"Merged weight">, NumberReply<number>, SimpleStringReply<"Unmerged weight">, NumberReply<number>, SimpleStringReply<"Observations">, NumberReply<number>, SimpleStringReply<"Total compressions">, NumberReply<number>, SimpleStringReply<"Memory usage">, NumberReply<number>], _: any, typeMapping?: TypeMapping) => TdInfoReplyMap;
readonly 3: () => TdInfoReplyMap;
};
};
export default _default;
//# sourceMappingURL=INFO.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"INFO.d.ts","sourceRoot":"","sources":["../../../../lib/commands/t-digest/INFO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAW,WAAW,EAAE,gBAAgB,EAA2B,iBAAiB,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAGnK,MAAM,MAAM,cAAc,GAAG,gBAAgB,CAAC;IAC5C;QAAC,iBAAiB,CAAC,aAAa,CAAC;QAAE,WAAW;KAAC;IAC/C;QAAC,iBAAiB,CAAC,UAAU,CAAC;QAAE,WAAW;KAAC;IAC5C;QAAC,iBAAiB,CAAC,cAAc,CAAC;QAAE,WAAW;KAAC;IAChD;QAAC,iBAAiB,CAAC,gBAAgB,CAAC;QAAE,WAAW;KAAC;IAClD;QAAC,iBAAiB,CAAC,eAAe,CAAC;QAAE,WAAW;KAAC;IACjD;QAAC,iBAAiB,CAAC,iBAAiB,CAAC;QAAE,WAAW;KAAC;IACnD;QAAC,iBAAiB,CAAC,cAAc,CAAC;QAAE,WAAW;KAAC;IAChD;QAAC,iBAAiB,CAAC,oBAAoB,CAAC;QAAE,WAAW;KAAC;IACtD;QAAC,iBAAiB,CAAC,cAAc,CAAC;QAAE,WAAW;KAAC;CACjD,CAAC,CAAC;;;gDAIoB,aAAa,OAAO,aAAa;;+jBAKiB,WAAW;;;;AAPpF,wBAY6B"}
@@ -0,0 +1,17 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const bloom_1 = require("../bloom");
exports.default = {
IS_READ_ONLY: true,
parseCommand(parser, key) {
parser.push('TDIGEST.INFO');
parser.pushKey(key);
},
transformReply: {
2: (reply, _, typeMapping) => {
return (0, bloom_1.transformInfoV2Reply)(reply, typeMapping);
},
3: undefined
}
};
//# sourceMappingURL=INFO.js.map
@@ -0,0 +1 @@
{"version":3,"file":"INFO.js","sourceRoot":"","sources":["../../../../lib/commands/t-digest/INFO.ts"],"names":[],"mappings":";;AAEA,oCAAgD;AAchD,kBAAe;IACb,YAAY,EAAE,IAAI;IAClB,YAAY,CAAC,MAAqB,EAAE,GAAkB;QACpD,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAC5B,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,4BAAoB,EAAiB,KAAK,EAAE,WAAW,CAAC,CAAC;QAClE,CAAC;QACD,CAAC,EAAE,SAA4C;KAChD;CACyB,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { RedisArgument, Command, NumberReply, TuplesToMapReply, UnwrapReply, Resp2Reply, SimpleStringReply, TypeMapping } from '@redis/client/dist/lib/RESP/types';\nimport { transformInfoV2Reply } from '../bloom';\n\nexport type TdInfoReplyMap = TuplesToMapReply<[\n [SimpleStringReply<'Compression'>, NumberReply],\n [SimpleStringReply<'Capacity'>, NumberReply],\n [SimpleStringReply<'Merged nodes'>, NumberReply],\n [SimpleStringReply<'Unmerged nodes'>, NumberReply],\n [SimpleStringReply<'Merged weight'>, NumberReply],\n [SimpleStringReply<'Unmerged weight'>, NumberReply],\n [SimpleStringReply<'Observations'>, NumberReply],\n [SimpleStringReply<'Total compressions'>, NumberReply],\n [SimpleStringReply<'Memory usage'>, NumberReply]\n]>;\n\nexport default {\n IS_READ_ONLY: true,\n parseCommand(parser: CommandParser, key: RedisArgument) {\n parser.push('TDIGEST.INFO');\n parser.pushKey(key);\n },\n transformReply: {\n 2: (reply: UnwrapReply<Resp2Reply<TdInfoReplyMap>>, _, typeMapping?: TypeMapping): TdInfoReplyMap => {\n return transformInfoV2Reply<TdInfoReplyMap>(reply, typeMapping);\n },\n 3: undefined as unknown as () => TdInfoReplyMap\n }\n} as const satisfies Command;\n"]}
@@ -0,0 +1,12 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument } from '@redis/client/dist/lib/RESP/types';
declare const _default: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>, preserve?: any, typeMapping?: import("@redis/client/dist/lib/RESP/types").TypeMapping | undefined) => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
3: () => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
};
};
export default _default;
//# sourceMappingURL=MAX.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"MAX.d.ts","sourceRoot":"","sources":["../../../../lib/commands/t-digest/MAX.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAW,MAAM,mCAAmC,CAAC;;;gDAKpD,aAAa,OAAO,aAAa;;;;;;AAFxD,wBAO6B"}
@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
exports.default = {
IS_READ_ONLY: true,
parseCommand(parser, key) {
parser.push('TDIGEST.MAX');
parser.pushKey(key);
},
transformReply: generic_transformers_1.transformDoubleReply
};
//# sourceMappingURL=MAX.js.map
@@ -0,0 +1 @@
{"version":3,"file":"MAX.js","sourceRoot":"","sources":["../../../../lib/commands/t-digest/MAX.ts"],"names":[],"mappings":";;AAEA,+FAA4F;AAE5F,kBAAe;IACb,YAAY,EAAE,IAAI;IAClB,YAAY,CAAC,MAAqB,EAAE,GAAkB;QACpD,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC3B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtB,CAAC;IACD,cAAc,EAAE,2CAAoB;CACV,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { RedisArgument, Command } from '@redis/client/dist/lib/RESP/types';\nimport { transformDoubleReply } from '@redis/client/dist/lib/commands/generic-transformers';\n\nexport default {\n IS_READ_ONLY: true,\n parseCommand(parser: CommandParser, key: RedisArgument) {\n parser.push('TDIGEST.MAX');\n parser.pushKey(key);\n },\n transformReply: transformDoubleReply\n} as const satisfies Command;\n"]}
@@ -0,0 +1,14 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument, SimpleStringReply } from '@redis/client/dist/lib/RESP/types';
import { RedisVariadicArgument } from '@redis/client/dist/lib/commands/generic-transformers';
export interface TDigestMergeOptions {
COMPRESSION?: number;
OVERRIDE?: boolean;
}
declare const _default: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: CommandParser, destination: RedisArgument, source: RedisVariadicArgument, options?: TDigestMergeOptions) => void;
readonly transformReply: () => SimpleStringReply<'OK'>;
};
export default _default;
//# sourceMappingURL=MERGE.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"MERGE.d.ts","sourceRoot":"","sources":["../../../../lib/commands/t-digest/MERGE.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAW,MAAM,mCAAmC,CAAC;AAC9F,OAAO,EAAE,qBAAqB,EAAE,MAAM,sDAAsD,CAAC;AAE7F,MAAM,WAAW,mBAAmB;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;;;gDAKW,aAAa,eACR,aAAa,UAClB,qBAAqB,YACnB,mBAAmB;mCAce,kBAAkB,IAAI,CAAC;;AApBvE,wBAqB6B"}
@@ -0,0 +1,18 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
IS_READ_ONLY: false,
parseCommand(parser, destination, source, options) {
parser.push('TDIGEST.MERGE');
parser.pushKey(destination);
parser.pushKeysLength(source);
if (options?.COMPRESSION !== undefined) {
parser.push('COMPRESSION', options.COMPRESSION.toString());
}
if (options?.OVERRIDE) {
parser.push('OVERRIDE');
}
},
transformReply: undefined
};
//# sourceMappingURL=MERGE.js.map
@@ -0,0 +1 @@
{"version":3,"file":"MERGE.js","sourceRoot":"","sources":["../../../../lib/commands/t-digest/MERGE.ts"],"names":[],"mappings":";;AASA,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CACV,MAAqB,EACrB,WAA0B,EAC1B,MAA6B,EAC7B,OAA6B;QAE7B,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAC7B,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QAC5B,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;QAE9B,IAAI,OAAO,EAAE,WAAW,KAAK,SAAS,EAAE,CAAC;YACvC,MAAM,CAAC,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC7D,CAAC;QAED,IAAI,OAAO,EAAE,QAAQ,EAAE,CAAC;YACtB,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAAqD;CAC3C,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { RedisArgument, SimpleStringReply, Command } from '@redis/client/dist/lib/RESP/types';\nimport { RedisVariadicArgument } from '@redis/client/dist/lib/commands/generic-transformers';\n\nexport interface TDigestMergeOptions {\n COMPRESSION?: number;\n OVERRIDE?: boolean;\n}\n\nexport default {\n IS_READ_ONLY: false,\n parseCommand(\n parser: CommandParser,\n destination: RedisArgument,\n source: RedisVariadicArgument,\n options?: TDigestMergeOptions\n ) {\n parser.push('TDIGEST.MERGE');\n parser.pushKey(destination);\n parser.pushKeysLength(source);\n\n if (options?.COMPRESSION !== undefined) {\n parser.push('COMPRESSION', options.COMPRESSION.toString());\n }\n\n if (options?.OVERRIDE) {\n parser.push('OVERRIDE');\n }\n },\n transformReply: undefined as unknown as () => SimpleStringReply<'OK'>\n} as const satisfies Command;\n"]}
@@ -0,0 +1,12 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument } from '@redis/client/dist/lib/RESP/types';
declare const _default: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>, preserve?: any, typeMapping?: import("@redis/client/dist/lib/RESP/types").TypeMapping | undefined) => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
3: () => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
};
};
export default _default;
//# sourceMappingURL=MIN.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"MIN.d.ts","sourceRoot":"","sources":["../../../../lib/commands/t-digest/MIN.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAW,MAAM,mCAAmC,CAAC;;;gDAKpD,aAAa,OAAO,aAAa;;;;;;AAFxD,wBAO6B"}
@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
exports.default = {
IS_READ_ONLY: true,
parseCommand(parser, key) {
parser.push('TDIGEST.MIN');
parser.pushKey(key);
},
transformReply: generic_transformers_1.transformDoubleReply
};
//# sourceMappingURL=MIN.js.map
@@ -0,0 +1 @@
{"version":3,"file":"MIN.js","sourceRoot":"","sources":["../../../../lib/commands/t-digest/MIN.ts"],"names":[],"mappings":";;AAEA,+FAA4F;AAE5F,kBAAe;IACb,YAAY,EAAE,IAAI;IAClB,YAAY,CAAC,MAAqB,EAAE,GAAkB;QACpD,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC3B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtB,CAAC;IACD,cAAc,EAAE,2CAAoB;CACV,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { RedisArgument, Command } from '@redis/client/dist/lib/RESP/types';\nimport { transformDoubleReply } from '@redis/client/dist/lib/commands/generic-transformers';\n\nexport default {\n IS_READ_ONLY: true,\n parseCommand(parser: CommandParser, key: RedisArgument) {\n parser.push('TDIGEST.MIN');\n parser.pushKey(key);\n },\n transformReply: transformDoubleReply\n} as const satisfies Command;\n"]}
@@ -0,0 +1,12 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument } from '@redis/client/dist/lib/RESP/types';
declare const _default: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, quantiles: Array<number>) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>[], preserve?: any, typeMapping?: import("@redis/client/dist/lib/RESP/types").TypeMapping | undefined) => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
};
};
export default _default;
//# sourceMappingURL=QUANTILE.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"QUANTILE.d.ts","sourceRoot":"","sources":["../../../../lib/commands/t-digest/QUANTILE.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAW,MAAM,mCAAmC,CAAC;;;gDAKpD,aAAa,OAAO,aAAa,aAAa,MAAM,MAAM,CAAC;;;;;;AAFlF,wBAW6B"}
@@ -0,0 +1,15 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
exports.default = {
IS_READ_ONLY: true,
parseCommand(parser, key, quantiles) {
parser.push('TDIGEST.QUANTILE');
parser.pushKey(key);
for (const quantile of quantiles) {
parser.push(quantile.toString());
}
},
transformReply: generic_transformers_1.transformDoubleArrayReply
};
//# sourceMappingURL=QUANTILE.js.map
@@ -0,0 +1 @@
{"version":3,"file":"QUANTILE.js","sourceRoot":"","sources":["../../../../lib/commands/t-digest/QUANTILE.ts"],"names":[],"mappings":";;AAEA,+FAAiG;AAEjG,kBAAe;IACb,YAAY,EAAE,IAAI;IAClB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,SAAwB;QAC9E,MAAM,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;QAChC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAEpB,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE,CAAC;YACjC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC;QACnC,CAAC;IACH,CAAC;IACD,cAAc,EAAE,gDAAyB;CACf,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { RedisArgument, Command } from '@redis/client/dist/lib/RESP/types';\nimport { transformDoubleArrayReply } from '@redis/client/dist/lib/commands/generic-transformers';\n\nexport default {\n IS_READ_ONLY: true,\n parseCommand(parser: CommandParser, key: RedisArgument, quantiles: Array<number>) {\n parser.push('TDIGEST.QUANTILE');\n parser.pushKey(key);\n\n for (const quantile of quantiles) {\n parser.push(quantile.toString());\n }\n },\n transformReply: transformDoubleArrayReply\n} as const satisfies Command;\n"]}
@@ -0,0 +1,10 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument, ArrayReply, NumberReply } from '@redis/client/dist/lib/RESP/types';
export declare function transformRankArguments(parser: CommandParser, key: RedisArgument, values: Array<number>): void;
declare const _default: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, values: number[]) => void;
readonly transformReply: () => ArrayReply<NumberReply>;
};
export default _default;
//# sourceMappingURL=RANK.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"RANK.d.ts","sourceRoot":"","sources":["../../../../lib/commands/t-digest/RANK.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAW,MAAM,mCAAmC,CAAC;AAEpG,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,aAAa,EACrB,GAAG,EAAE,aAAa,EAClB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,QAOtB;;;;mCAQ+C,WAAW,WAAW,CAAC;;AANvE,wBAO6B"}
@@ -0,0 +1,19 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformRankArguments = void 0;
function transformRankArguments(parser, key, values) {
parser.pushKey(key);
for (const value of values) {
parser.push(value.toString());
}
}
exports.transformRankArguments = transformRankArguments;
exports.default = {
IS_READ_ONLY: true,
parseCommand(...args) {
args[0].push('TDIGEST.RANK');
transformRankArguments(...args);
},
transformReply: undefined
};
//# sourceMappingURL=RANK.js.map
@@ -0,0 +1 @@
{"version":3,"file":"RANK.js","sourceRoot":"","sources":["../../../../lib/commands/t-digest/RANK.ts"],"names":[],"mappings":";;;AAGA,SAAgB,sBAAsB,CACpC,MAAqB,EACrB,GAAkB,EAClB,MAAqB;IAErB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAEpB,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;IAChC,CAAC;AACH,CAAC;AAVD,wDAUC;AAED,kBAAe;IACb,YAAY,EAAE,IAAI;IAClB,YAAY,CAAC,GAAG,IAA+C;QAC7D,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAC7B,sBAAsB,CAAC,GAAG,IAAI,CAAC,CAAC;IAClC,CAAC;IACD,cAAc,EAAE,SAAqD;CAC3C,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { RedisArgument, ArrayReply, NumberReply, Command } from '@redis/client/dist/lib/RESP/types';\n\nexport function transformRankArguments(\n parser: CommandParser,\n key: RedisArgument,\n values: Array<number>\n) {\n parser.pushKey(key);\n\n for (const value of values) {\n parser.push(value.toString());\n }\n}\n\nexport default {\n IS_READ_ONLY: true,\n parseCommand(...args: Parameters<typeof transformRankArguments>) {\n args[0].push('TDIGEST.RANK');\n transformRankArguments(...args);\n },\n transformReply: undefined as unknown as () => ArrayReply<NumberReply>\n} as const satisfies Command;\n"]}
@@ -0,0 +1,9 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument, SimpleStringReply } from '@redis/client/dist/lib/RESP/types';
declare const _default: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument) => void;
readonly transformReply: () => SimpleStringReply<'OK'>;
};
export default _default;
//# sourceMappingURL=RESET.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"RESET.d.ts","sourceRoot":"","sources":["../../../../lib/commands/t-digest/RESET.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAW,MAAM,mCAAmC,CAAC;;;gDAIvE,aAAa,OAAO,aAAa;mCAIR,kBAAkB,IAAI,CAAC;;AANvE,wBAO6B"}
@@ -0,0 +1,11 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
IS_READ_ONLY: false,
parseCommand(parser, key) {
parser.push('TDIGEST.RESET');
parser.pushKey(key);
},
transformReply: undefined
};
//# sourceMappingURL=RESET.js.map
@@ -0,0 +1 @@
{"version":3,"file":"RESET.js","sourceRoot":"","sources":["../../../../lib/commands/t-digest/RESET.ts"],"names":[],"mappings":";;AAGA,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CAAC,MAAqB,EAAE,GAAkB;QACpD,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAC7B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtB,CAAC;IACD,cAAc,EAAE,SAAqD;CAC3C,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { RedisArgument, SimpleStringReply, Command } from '@redis/client/dist/lib/RESP/types';\n\nexport default {\n IS_READ_ONLY: false,\n parseCommand(parser: CommandParser, key: RedisArgument) {\n parser.push('TDIGEST.RESET');\n parser.pushKey(key);\n },\n transformReply: undefined as unknown as () => SimpleStringReply<'OK'>\n} as const satisfies Command;\n"]}
@@ -0,0 +1,13 @@
/**
* Returns the reverse rank of one or more values in a t-digest sketch (number of values that are higher than each value)
* @param parser - The command parser
* @param key - The name of the t-digest sketch
* @param values - Array of values to get reverse ranks for
*/
declare const _default: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, values: number[]) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
};
export default _default;
//# sourceMappingURL=REVRANK.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"REVRANK.d.ts","sourceRoot":"","sources":["../../../../lib/commands/t-digest/REVRANK.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;;;;;;AACH,wBAO6B"}
@@ -0,0 +1,41 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const RANK_1 = __importStar(require("./RANK"));
/**
* Returns the reverse rank of one or more values in a t-digest sketch (number of values that are higher than each value)
* @param parser - The command parser
* @param key - The name of the t-digest sketch
* @param values - Array of values to get reverse ranks for
*/
exports.default = {
IS_READ_ONLY: RANK_1.default.IS_READ_ONLY,
parseCommand(...args) {
args[0].push('TDIGEST.REVRANK');
(0, RANK_1.transformRankArguments)(...args);
},
transformReply: RANK_1.default.transformReply
};
//# sourceMappingURL=REVRANK.js.map
@@ -0,0 +1 @@
{"version":3,"file":"REVRANK.js","sourceRoot":"","sources":["../../../../lib/commands/t-digest/REVRANK.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,+CAAsD;AAEtD;;;;;GAKG;AACH,kBAAe;IACb,YAAY,EAAE,cAAI,CAAC,YAAY;IAC/B,YAAY,CAAC,GAAG,IAA+C;QAC7D,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QAChC,IAAA,6BAAsB,EAAC,GAAG,IAAI,CAAC,CAAC;IAClC,CAAC;IACD,cAAc,EAAE,cAAI,CAAC,cAAc;CACT,CAAC","sourcesContent":["import { Command } from '@redis/client/dist/lib/RESP/types';\nimport RANK, { transformRankArguments } from './RANK';\n\n/**\n * Returns the reverse rank of one or more values in a t-digest sketch (number of values that are higher than each value)\n * @param parser - The command parser\n * @param key - The name of the t-digest sketch\n * @param values - Array of values to get reverse ranks for\n */\nexport default {\n IS_READ_ONLY: RANK.IS_READ_ONLY,\n parseCommand(...args: Parameters<typeof transformRankArguments>) {\n args[0].push('TDIGEST.REVRANK');\n transformRankArguments(...args);\n },\n transformReply: RANK.transformReply\n} as const satisfies Command;\n"]}
@@ -0,0 +1,12 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument } from '@redis/client/dist/lib/RESP/types';
declare const _default: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, lowCutPercentile: number, highCutPercentile: number) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>, preserve?: any, typeMapping?: import("@redis/client/dist/lib/RESP/types").TypeMapping | undefined) => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
3: () => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
};
};
export default _default;
//# sourceMappingURL=TRIMMED_MEAN.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"TRIMMED_MEAN.d.ts","sourceRoot":"","sources":["../../../../lib/commands/t-digest/TRIMMED_MEAN.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAW,MAAM,mCAAmC,CAAC;;;gDAM/D,aAAa,OAChB,aAAa,oBACA,MAAM,qBACL,MAAM;;;;;;AAN7B,wBAa6B"}
@@ -0,0 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
exports.default = {
IS_READ_ONLY: true,
parseCommand(parser, key, lowCutPercentile, highCutPercentile) {
parser.push('TDIGEST.TRIMMED_MEAN');
parser.pushKey(key);
parser.push(lowCutPercentile.toString(), highCutPercentile.toString());
},
transformReply: generic_transformers_1.transformDoubleReply
};
//# sourceMappingURL=TRIMMED_MEAN.js.map
@@ -0,0 +1 @@
{"version":3,"file":"TRIMMED_MEAN.js","sourceRoot":"","sources":["../../../../lib/commands/t-digest/TRIMMED_MEAN.ts"],"names":[],"mappings":";;AAEA,+FAA4F;AAE5F,kBAAe;IACb,YAAY,EAAE,IAAI;IAClB,YAAY,CACV,MAAqB,EACrB,GAAkB,EAClB,gBAAwB,EACxB,iBAAyB;QAEzB,MAAM,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;QACpC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,EAAE,iBAAiB,CAAC,QAAQ,EAAE,CAAC,CAAC;IACzE,CAAC;IACD,cAAc,EAAE,2CAAoB;CACV,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { RedisArgument, Command } from '@redis/client/dist/lib/RESP/types';\nimport { transformDoubleReply } from '@redis/client/dist/lib/commands/generic-transformers';\n\nexport default {\n IS_READ_ONLY: true,\n parseCommand(\n parser: CommandParser,\n key: RedisArgument,\n lowCutPercentile: number,\n highCutPercentile: number\n ) {\n parser.push('TDIGEST.TRIMMED_MEAN');\n parser.pushKey(key);\n parser.push(lowCutPercentile.toString(), highCutPercentile.toString());\n },\n transformReply: transformDoubleReply\n} as const satisfies Command;\n"]}
@@ -0,0 +1,334 @@
declare const _default: {
/**
* Adds one or more observations to a t-digest sketch
* @param key - The name of the t-digest sketch
* @param values - Array of numeric values to add to the sketch
*/
readonly ADD: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, values: number[]) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
/**
* Adds one or more observations to a t-digest sketch
* @param key - The name of the t-digest sketch
* @param values - Array of numeric values to add to the sketch
*/
readonly add: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, values: number[]) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
/**
* Returns value estimates for one or more ranks in a t-digest sketch
* @param key - The name of the t-digest sketch
* @param ranks - Array of ranks to get value estimates for (ascending order)
*/
readonly BYRANK: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, ranks: number[]) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>[], preserve?: any, typeMapping?: import("@redis/client/dist/lib/RESP/types").TypeMapping | undefined) => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
};
};
/**
* Returns value estimates for one or more ranks in a t-digest sketch
* @param key - The name of the t-digest sketch
* @param ranks - Array of ranks to get value estimates for (ascending order)
*/
readonly byRank: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, ranks: number[]) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>[], preserve?: any, typeMapping?: import("@redis/client/dist/lib/RESP/types").TypeMapping | undefined) => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
};
};
/**
* Returns value estimates for one or more ranks in a t-digest sketch, starting from highest rank
* @param key - The name of the t-digest sketch
* @param ranks - Array of ranks to get value estimates for (descending order)
*/
readonly BYREVRANK: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, ranks: number[]) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>[], preserve?: any, typeMapping?: import("@redis/client/dist/lib/RESP/types").TypeMapping | undefined) => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
};
};
/**
* Returns value estimates for one or more ranks in a t-digest sketch, starting from highest rank
* @param key - The name of the t-digest sketch
* @param ranks - Array of ranks to get value estimates for (descending order)
*/
readonly byRevRank: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, ranks: number[]) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>[], preserve?: any, typeMapping?: import("@redis/client/dist/lib/RESP/types").TypeMapping | undefined) => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
};
};
/**
* Estimates the cumulative distribution function for values in a t-digest sketch
* @param key - The name of the t-digest sketch
* @param values - Array of values to get CDF estimates for
*/
readonly CDF: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, values: number[]) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>[], preserve?: any, typeMapping?: import("@redis/client/dist/lib/RESP/types").TypeMapping | undefined) => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
};
};
/**
* Estimates the cumulative distribution function for values in a t-digest sketch
* @param key - The name of the t-digest sketch
* @param values - Array of values to get CDF estimates for
*/
readonly cdf: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, values: number[]) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>[], preserve?: any, typeMapping?: import("@redis/client/dist/lib/RESP/types").TypeMapping | undefined) => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
};
};
/**
* Creates a new t-digest sketch for storing distributions
* @param key - The name of the t-digest sketch
* @param options - Optional parameters for sketch creation
* @param options.COMPRESSION - Compression parameter that affects performance and accuracy
*/
readonly CREATE: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, options?: import("./CREATE").TDigestCreateOptions | undefined) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
/**
* Creates a new t-digest sketch for storing distributions
* @param key - The name of the t-digest sketch
* @param options - Optional parameters for sketch creation
* @param options.COMPRESSION - Compression parameter that affects performance and accuracy
*/
readonly create: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, options?: import("./CREATE").TDigestCreateOptions | undefined) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
/**
* Returns information about a t-digest sketch including compression, capacity, nodes, weights, observations and memory usage
* @param key - The name of the t-digest sketch to get information about
*/
readonly INFO: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument) => void;
readonly transformReply: {
readonly 2: (this: void, reply: [import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Compression">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, 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<"Merged nodes">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Unmerged nodes">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Merged weight">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Unmerged weight">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Observations">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Total compressions">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Memory usage">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>], _: any, typeMapping?: import("@redis/client/dist/lib/RESP/types").TypeMapping | undefined) => import("./INFO").TdInfoReplyMap;
readonly 3: () => import("./INFO").TdInfoReplyMap;
};
};
/**
* Returns information about a t-digest sketch including compression, capacity, nodes, weights, observations and memory usage
* @param key - The name of the t-digest sketch to get information about
*/
readonly info: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument) => void;
readonly transformReply: {
readonly 2: (this: void, reply: [import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Compression">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, 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<"Merged nodes">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Unmerged nodes">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Merged weight">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Unmerged weight">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Observations">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Total compressions">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>, import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"Memory usage">, import("@redis/client/dist/lib/RESP/types").NumberReply<number>], _: any, typeMapping?: import("@redis/client/dist/lib/RESP/types").TypeMapping | undefined) => import("./INFO").TdInfoReplyMap;
readonly 3: () => import("./INFO").TdInfoReplyMap;
};
};
/**
* Returns the maximum value from a t-digest sketch
* @param key - The name of the t-digest sketch
*/
readonly MAX: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>, preserve?: any, typeMapping?: import("@redis/client/dist/lib/RESP/types").TypeMapping | undefined) => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
3: () => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
};
};
/**
* Returns the maximum value from a t-digest sketch
* @param key - The name of the t-digest sketch
*/
readonly max: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>, preserve?: any, typeMapping?: import("@redis/client/dist/lib/RESP/types").TypeMapping | undefined) => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
3: () => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
};
};
/**
* Merges multiple t-digest sketches into one, with optional compression and override settings
* @param destination - The name of the destination t-digest sketch
* @param source - One or more source sketch names to merge from
* @param options - Optional parameters for merge operation
* @param options.COMPRESSION - New compression value for merged sketch
* @param options.OVERRIDE - If true, override destination sketch if it exists
*/
readonly MERGE: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, destination: import("@redis/client/dist/lib/RESP/types").RedisArgument, source: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument, options?: import("./MERGE").TDigestMergeOptions | undefined) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
/**
* Merges multiple t-digest sketches into one, with optional compression and override settings
* @param destination - The name of the destination t-digest sketch
* @param source - One or more source sketch names to merge from
* @param options - Optional parameters for merge operation
* @param options.COMPRESSION - New compression value for merged sketch
* @param options.OVERRIDE - If true, override destination sketch if it exists
*/
readonly merge: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, destination: import("@redis/client/dist/lib/RESP/types").RedisArgument, source: import("@redis/client/dist/lib/commands/generic-transformers").RedisVariadicArgument, options?: import("./MERGE").TDigestMergeOptions | undefined) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
/**
* Returns the minimum value from a t-digest sketch
* @param key - The name of the t-digest sketch
*/
readonly MIN: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>, preserve?: any, typeMapping?: import("@redis/client/dist/lib/RESP/types").TypeMapping | undefined) => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
3: () => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
};
};
/**
* Returns the minimum value from a t-digest sketch
* @param key - The name of the t-digest sketch
*/
readonly min: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>, preserve?: any, typeMapping?: import("@redis/client/dist/lib/RESP/types").TypeMapping | undefined) => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
3: () => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
};
};
/**
* Returns value estimates at requested quantiles from a t-digest sketch
* @param key - The name of the t-digest sketch
* @param quantiles - Array of quantiles (between 0 and 1) to get value estimates for
*/
readonly QUANTILE: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, quantiles: number[]) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>[], preserve?: any, typeMapping?: import("@redis/client/dist/lib/RESP/types").TypeMapping | undefined) => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
};
};
/**
* Returns value estimates at requested quantiles from a t-digest sketch
* @param key - The name of the t-digest sketch
* @param quantiles - Array of quantiles (between 0 and 1) to get value estimates for
*/
readonly quantile: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, quantiles: number[]) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>[], preserve?: any, typeMapping?: import("@redis/client/dist/lib/RESP/types").TypeMapping | undefined) => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>[];
3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
};
};
/**
* Returns the rank of one or more values in a t-digest sketch (number of values that are lower than each value)
* @param key - The name of the t-digest sketch
* @param values - Array of values to get ranks for
*/
readonly RANK: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, values: number[]) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
};
/**
* Returns the rank of one or more values in a t-digest sketch (number of values that are lower than each value)
* @param key - The name of the t-digest sketch
* @param values - Array of values to get ranks for
*/
readonly rank: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, values: number[]) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
};
/**
* Resets a t-digest sketch, clearing all previously added observations
* @param key - The name of the t-digest sketch to reset
*/
readonly RESET: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
/**
* Resets a t-digest sketch, clearing all previously added observations
* @param key - The name of the t-digest sketch to reset
*/
readonly reset: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
};
/**
* Returns the reverse rank of one or more values in a t-digest sketch (number of values that are higher than each value)
* @param key - The name of the t-digest sketch
* @param values - Array of values to get reverse ranks for
*/
readonly REVRANK: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, values: number[]) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
};
/**
* Returns the reverse rank of one or more values in a t-digest sketch (number of values that are higher than each value)
* @param key - The name of the t-digest sketch
* @param values - Array of values to get reverse ranks for
*/
readonly revRank: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, values: number[]) => void;
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
};
/**
* Returns the mean value from a t-digest sketch after trimming values at specified percentiles
* @param key - The name of the t-digest sketch
* @param lowCutPercentile - Lower percentile cutoff (between 0 and 100)
* @param highCutPercentile - Higher percentile cutoff (between 0 and 100)
*/
readonly TRIMMED_MEAN: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, lowCutPercentile: number, highCutPercentile: number) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>, preserve?: any, typeMapping?: import("@redis/client/dist/lib/RESP/types").TypeMapping | undefined) => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
3: () => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
};
};
/**
* Returns the mean value from a t-digest sketch after trimming values at specified percentiles
* @param key - The name of the t-digest sketch
* @param lowCutPercentile - Lower percentile cutoff (between 0 and 100)
* @param highCutPercentile - Higher percentile cutoff (between 0 and 100)
*/
readonly trimmedMean: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: import("@redis/client").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, lowCutPercentile: number, highCutPercentile: number) => void;
readonly transformReply: {
2: (reply: import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>, preserve?: any, typeMapping?: import("@redis/client/dist/lib/RESP/types").TypeMapping | undefined) => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
3: () => import("@redis/client/dist/lib/RESP/types").DoubleReply<number>;
};
};
};
export default _default;
//# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/commands/t-digest/index.ts"],"names":[],"mappings":";IAiBE;;;;OAIG;;;;;;IAEH;;;;OAIG;;;;;;IAEH;;;;OAIG;;;;;;;;;IAEH;;;;OAIG;;;;;;;;;IAEH;;;;OAIG;;;;;;;;;IAEH;;;;OAIG;;;;;;;;;IAEH;;;;OAIG;;;;;;;;;IAEH;;;;OAIG;;;;;;;;;IAEH;;;;;OAKG;;;;;;IAEH;;;;;OAKG;;;;;;IAEH;;;OAGG;;;;;;;;;IAEH;;;OAGG;;;;;;;;;IAEH;;;OAGG;;;;;;;;;IAEH;;;OAGG;;;;;;;;;IAEH;;;;;;;OAOG;;;;;;IAEH;;;;;;;OAOG;;;;;;IAEH;;;OAGG;;;;;;;;;IAEH;;;OAGG;;;;;;;;;IAEH;;;;OAIG;;;;;;;;;IAEH;;;;OAIG;;;;;;;;;IAEH;;;;OAIG;;;;;;IAEH;;;;OAIG;;;;;;IAEH;;;OAGG;;;;;;IAEH;;;OAGG;;;;;;IAEH;;;;OAIG;;;;;;IAEH;;;;OAIG;;;;;;IAEH;;;;;OAKG;;;;;;;;;IAEH;;;;;OAKG;;;;;;;;;;AAzKL,wBA2KmC"}
@@ -0,0 +1,192 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const ADD_1 = __importDefault(require("./ADD"));
const BYRANK_1 = __importDefault(require("./BYRANK"));
const BYREVRANK_1 = __importDefault(require("./BYREVRANK"));
const CDF_1 = __importDefault(require("./CDF"));
const CREATE_1 = __importDefault(require("./CREATE"));
const INFO_1 = __importDefault(require("./INFO"));
const MAX_1 = __importDefault(require("./MAX"));
const MERGE_1 = __importDefault(require("./MERGE"));
const MIN_1 = __importDefault(require("./MIN"));
const QUANTILE_1 = __importDefault(require("./QUANTILE"));
const RANK_1 = __importDefault(require("./RANK"));
const RESET_1 = __importDefault(require("./RESET"));
const REVRANK_1 = __importDefault(require("./REVRANK"));
const TRIMMED_MEAN_1 = __importDefault(require("./TRIMMED_MEAN"));
exports.default = {
/**
* Adds one or more observations to a t-digest sketch
* @param key - The name of the t-digest sketch
* @param values - Array of numeric values to add to the sketch
*/
ADD: ADD_1.default,
/**
* Adds one or more observations to a t-digest sketch
* @param key - The name of the t-digest sketch
* @param values - Array of numeric values to add to the sketch
*/
add: ADD_1.default,
/**
* Returns value estimates for one or more ranks in a t-digest sketch
* @param key - The name of the t-digest sketch
* @param ranks - Array of ranks to get value estimates for (ascending order)
*/
BYRANK: BYRANK_1.default,
/**
* Returns value estimates for one or more ranks in a t-digest sketch
* @param key - The name of the t-digest sketch
* @param ranks - Array of ranks to get value estimates for (ascending order)
*/
byRank: BYRANK_1.default,
/**
* Returns value estimates for one or more ranks in a t-digest sketch, starting from highest rank
* @param key - The name of the t-digest sketch
* @param ranks - Array of ranks to get value estimates for (descending order)
*/
BYREVRANK: BYREVRANK_1.default,
/**
* Returns value estimates for one or more ranks in a t-digest sketch, starting from highest rank
* @param key - The name of the t-digest sketch
* @param ranks - Array of ranks to get value estimates for (descending order)
*/
byRevRank: BYREVRANK_1.default,
/**
* Estimates the cumulative distribution function for values in a t-digest sketch
* @param key - The name of the t-digest sketch
* @param values - Array of values to get CDF estimates for
*/
CDF: CDF_1.default,
/**
* Estimates the cumulative distribution function for values in a t-digest sketch
* @param key - The name of the t-digest sketch
* @param values - Array of values to get CDF estimates for
*/
cdf: CDF_1.default,
/**
* Creates a new t-digest sketch for storing distributions
* @param key - The name of the t-digest sketch
* @param options - Optional parameters for sketch creation
* @param options.COMPRESSION - Compression parameter that affects performance and accuracy
*/
CREATE: CREATE_1.default,
/**
* Creates a new t-digest sketch for storing distributions
* @param key - The name of the t-digest sketch
* @param options - Optional parameters for sketch creation
* @param options.COMPRESSION - Compression parameter that affects performance and accuracy
*/
create: CREATE_1.default,
/**
* Returns information about a t-digest sketch including compression, capacity, nodes, weights, observations and memory usage
* @param key - The name of the t-digest sketch to get information about
*/
INFO: INFO_1.default,
/**
* Returns information about a t-digest sketch including compression, capacity, nodes, weights, observations and memory usage
* @param key - The name of the t-digest sketch to get information about
*/
info: INFO_1.default,
/**
* Returns the maximum value from a t-digest sketch
* @param key - The name of the t-digest sketch
*/
MAX: MAX_1.default,
/**
* Returns the maximum value from a t-digest sketch
* @param key - The name of the t-digest sketch
*/
max: MAX_1.default,
/**
* Merges multiple t-digest sketches into one, with optional compression and override settings
* @param destination - The name of the destination t-digest sketch
* @param source - One or more source sketch names to merge from
* @param options - Optional parameters for merge operation
* @param options.COMPRESSION - New compression value for merged sketch
* @param options.OVERRIDE - If true, override destination sketch if it exists
*/
MERGE: MERGE_1.default,
/**
* Merges multiple t-digest sketches into one, with optional compression and override settings
* @param destination - The name of the destination t-digest sketch
* @param source - One or more source sketch names to merge from
* @param options - Optional parameters for merge operation
* @param options.COMPRESSION - New compression value for merged sketch
* @param options.OVERRIDE - If true, override destination sketch if it exists
*/
merge: MERGE_1.default,
/**
* Returns the minimum value from a t-digest sketch
* @param key - The name of the t-digest sketch
*/
MIN: MIN_1.default,
/**
* Returns the minimum value from a t-digest sketch
* @param key - The name of the t-digest sketch
*/
min: MIN_1.default,
/**
* Returns value estimates at requested quantiles from a t-digest sketch
* @param key - The name of the t-digest sketch
* @param quantiles - Array of quantiles (between 0 and 1) to get value estimates for
*/
QUANTILE: QUANTILE_1.default,
/**
* Returns value estimates at requested quantiles from a t-digest sketch
* @param key - The name of the t-digest sketch
* @param quantiles - Array of quantiles (between 0 and 1) to get value estimates for
*/
quantile: QUANTILE_1.default,
/**
* Returns the rank of one or more values in a t-digest sketch (number of values that are lower than each value)
* @param key - The name of the t-digest sketch
* @param values - Array of values to get ranks for
*/
RANK: RANK_1.default,
/**
* Returns the rank of one or more values in a t-digest sketch (number of values that are lower than each value)
* @param key - The name of the t-digest sketch
* @param values - Array of values to get ranks for
*/
rank: RANK_1.default,
/**
* Resets a t-digest sketch, clearing all previously added observations
* @param key - The name of the t-digest sketch to reset
*/
RESET: RESET_1.default,
/**
* Resets a t-digest sketch, clearing all previously added observations
* @param key - The name of the t-digest sketch to reset
*/
reset: RESET_1.default,
/**
* Returns the reverse rank of one or more values in a t-digest sketch (number of values that are higher than each value)
* @param key - The name of the t-digest sketch
* @param values - Array of values to get reverse ranks for
*/
REVRANK: REVRANK_1.default,
/**
* Returns the reverse rank of one or more values in a t-digest sketch (number of values that are higher than each value)
* @param key - The name of the t-digest sketch
* @param values - Array of values to get reverse ranks for
*/
revRank: REVRANK_1.default,
/**
* Returns the mean value from a t-digest sketch after trimming values at specified percentiles
* @param key - The name of the t-digest sketch
* @param lowCutPercentile - Lower percentile cutoff (between 0 and 100)
* @param highCutPercentile - Higher percentile cutoff (between 0 and 100)
*/
TRIMMED_MEAN: TRIMMED_MEAN_1.default,
/**
* Returns the mean value from a t-digest sketch after trimming values at specified percentiles
* @param key - The name of the t-digest sketch
* @param lowCutPercentile - Lower percentile cutoff (between 0 and 100)
* @param highCutPercentile - Higher percentile cutoff (between 0 and 100)
*/
trimmedMean: TRIMMED_MEAN_1.default
};
//# sourceMappingURL=index.js.map
File diff suppressed because one or more lines are too long
@@ -0,0 +1,10 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument, ArrayReply, BlobStringReply } from '@redis/client/dist/lib/RESP/types';
import { RedisVariadicArgument } from '@redis/client/dist/lib/commands/generic-transformers';
declare const _default: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, items: RedisVariadicArgument) => void;
readonly transformReply: () => ArrayReply<BlobStringReply>;
};
export default _default;
//# sourceMappingURL=ADD.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"ADD.d.ts","sourceRoot":"","sources":["../../../../lib/commands/top-k/ADD.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,eAAe,EAAW,MAAM,mCAAmC,CAAC;AACxG,OAAO,EAAE,qBAAqB,EAAE,MAAM,sDAAsD,CAAC;;;gDAItE,aAAa,OAAO,aAAa,SAAS,qBAAqB;mCAKtC,WAAW,eAAe,CAAC;;AAP3E,wBAQ6B"}
@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
IS_READ_ONLY: false,
parseCommand(parser, key, items) {
parser.push('TOPK.ADD');
parser.pushKey(key);
parser.pushVariadic(items);
},
transformReply: undefined
};
//# sourceMappingURL=ADD.js.map
@@ -0,0 +1 @@
{"version":3,"file":"ADD.js","sourceRoot":"","sources":["../../../../lib/commands/top-k/ADD.ts"],"names":[],"mappings":";;AAIA,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,KAA4B;QAClF,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACxB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;IACD,cAAc,EAAE,SAAyD;CAC/C,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { RedisArgument, ArrayReply, BlobStringReply, Command } from '@redis/client/dist/lib/RESP/types';\nimport { RedisVariadicArgument } from '@redis/client/dist/lib/commands/generic-transformers';\n\nexport default {\n IS_READ_ONLY: false,\n parseCommand(parser: CommandParser, key: RedisArgument, items: RedisVariadicArgument) {\n parser.push('TOPK.ADD');\n parser.pushKey(key);\n parser.pushVariadic(items);\n },\n transformReply: undefined as unknown as () => ArrayReply<BlobStringReply>\n} as const satisfies Command;\n"]}
@@ -0,0 +1,10 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument, ArrayReply, NumberReply } from '@redis/client/dist/lib/RESP/types';
import { RedisVariadicArgument } from '@redis/client/dist/lib/commands/generic-transformers';
declare const _default: {
readonly IS_READ_ONLY: true;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, items: RedisVariadicArgument) => void;
readonly transformReply: () => ArrayReply<NumberReply>;
};
export default _default;
//# sourceMappingURL=COUNT.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"COUNT.d.ts","sourceRoot":"","sources":["../../../../lib/commands/top-k/COUNT.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAW,MAAM,mCAAmC,CAAC;AACpG,OAAO,EAAE,qBAAqB,EAAE,MAAM,sDAAsD,CAAC;;;gDAItE,aAAa,OAAO,aAAa,SAAS,qBAAqB;mCAKtC,WAAW,WAAW,CAAC;;AAPvE,wBAQ6B"}
@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
IS_READ_ONLY: true,
parseCommand(parser, key, items) {
parser.push('TOPK.COUNT');
parser.pushKey(key);
parser.pushVariadic(items);
},
transformReply: undefined
};
//# sourceMappingURL=COUNT.js.map
@@ -0,0 +1 @@
{"version":3,"file":"COUNT.js","sourceRoot":"","sources":["../../../../lib/commands/top-k/COUNT.ts"],"names":[],"mappings":";;AAIA,kBAAe;IACb,YAAY,EAAE,IAAI;IAClB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,KAA4B;QAClF,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC1B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;IACD,cAAc,EAAE,SAAqD;CAC3C,CAAC","sourcesContent":["import { CommandParser } from '@redis/client/dist/lib/client/parser';\nimport { RedisArgument, ArrayReply, NumberReply, Command } from '@redis/client/dist/lib/RESP/types';\nimport { RedisVariadicArgument } from '@redis/client/dist/lib/commands/generic-transformers';\n\nexport default {\n IS_READ_ONLY: true,\n parseCommand(parser: CommandParser, key: RedisArgument, items: RedisVariadicArgument) {\n parser.push('TOPK.COUNT');\n parser.pushKey(key);\n parser.pushVariadic(items);\n },\n transformReply: undefined as unknown as () => ArrayReply<NumberReply>\n} as const satisfies Command;\n"]}
@@ -0,0 +1,13 @@
import { CommandParser } from '@redis/client/dist/lib/client/parser';
import { RedisArgument, ArrayReply, SimpleStringReply, NullReply } from '@redis/client/dist/lib/RESP/types';
export interface TopKIncrByItem {
item: string;
incrementBy: number;
}
declare const _default: {
readonly IS_READ_ONLY: false;
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, items: TopKIncrByItem | Array<TopKIncrByItem>) => void;
readonly transformReply: () => ArrayReply<SimpleStringReply | NullReply>;
};
export default _default;
//# sourceMappingURL=INCRBY.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"INCRBY.d.ts","sourceRoot":"","sources":["../../../../lib/commands/top-k/INCRBY.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,iBAAiB,EAAE,SAAS,EAAW,MAAM,mCAAmC,CAAC;AAErH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB;;;gDASW,aAAa,OAChB,aAAa,SACX,cAAc,GAAG,MAAM,cAAc,CAAC;mCAaD,WAAW,iBAAiB,GAAG,SAAS,CAAC;;AAlBzF,wBAmB6B"}
@@ -0,0 +1,22 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function pushIncrByItem(parser, { item, incrementBy }) {
parser.push(item, incrementBy.toString());
}
exports.default = {
IS_READ_ONLY: false,
parseCommand(parser, key, items) {
parser.push('TOPK.INCRBY');
parser.pushKey(key);
if (Array.isArray(items)) {
for (const item of items) {
pushIncrByItem(parser, item);
}
}
else {
pushIncrByItem(parser, items);
}
},
transformReply: undefined
};
//# sourceMappingURL=INCRBY.js.map

Some files were not shown because too many files have changed in this diff Show More