Files
micro-service-api/node_modules/@redis/bloom/dist/lib/commands/t-digest/CREATE.js
2025-11-11 12:36:06 +07:00

21 lines
770 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
IS_READ_ONLY: false,
/**
* Creates a new t-digest sketch for storing distributions
* @param parser - The command parser
* @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
*/
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