-first commit
This commit is contained in:
25
node_modules/@redis/bloom/dist/lib/commands/top-k/RESERVE.js
generated
vendored
Normal file
25
node_modules/@redis/bloom/dist/lib/commands/top-k/RESERVE.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = {
|
||||
IS_READ_ONLY: false,
|
||||
/**
|
||||
* Creates a new Top-K filter with specified parameters
|
||||
* @param parser - The command parser
|
||||
* @param key - The name of the Top-K filter
|
||||
* @param topK - Number of top occurring items to keep
|
||||
* @param options - Optional parameters for filter configuration
|
||||
* @param options.width - Number of counters in each array
|
||||
* @param options.depth - Number of counter-arrays
|
||||
* @param options.decay - Counter decay factor
|
||||
*/
|
||||
parseCommand(parser, key, topK, options) {
|
||||
parser.push('TOPK.RESERVE');
|
||||
parser.pushKey(key);
|
||||
parser.push(topK.toString());
|
||||
if (options) {
|
||||
parser.push(options.width.toString(), options.depth.toString(), options.decay.toString());
|
||||
}
|
||||
},
|
||||
transformReply: undefined
|
||||
};
|
||||
//# sourceMappingURL=RESERVE.js.map
|
||||
Reference in New Issue
Block a user