Files
micro-service-api/node_modules/@redis/bloom/dist/lib/commands/count-min-sketch/INITBYDIM.js
2025-11-11 12:36:06 +07:00

19 lines
703 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
IS_READ_ONLY: false,
/**
* Initialize a Count-Min Sketch using width and depth parameters
* @param parser - The command parser
* @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)
*/
parseCommand(parser, key, width, depth) {
parser.push('CMS.INITBYDIM');
parser.pushKey(key);
parser.push(width.toString(), depth.toString());
},
transformReply: undefined
};
//# sourceMappingURL=INITBYDIM.js.map