Files
micro-service-api/node_modules/@redis/time-series/dist/lib/commands/ALTER.js

23 lines
935 B
JavaScript
Raw Normal View History

2025-11-11 12:36:06 +07:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const helpers_1 = require("./helpers");
exports.default = {
IS_READ_ONLY: false,
/**
* Alters the configuration of an existing time series
* @param parser - The command parser
* @param key - The key name for the time series
* @param options - Configuration parameters to alter
*/
parseCommand(parser, key, options) {
parser.push('TS.ALTER');
parser.pushKey(key);
(0, helpers_1.parseRetentionArgument)(parser, options?.RETENTION);
(0, helpers_1.parseChunkSizeArgument)(parser, options?.CHUNK_SIZE);
(0, helpers_1.parseDuplicatePolicy)(parser, options?.DUPLICATE_POLICY);
(0, helpers_1.parseLabelsArgument)(parser, options?.LABELS);
(0, helpers_1.parseIgnoreArgument)(parser, options?.IGNORE);
},
transformReply: undefined
};
//# sourceMappingURL=ALTER.js.map