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

20 lines
782 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,
/**
* Deletes samples between two timestamps from a time series
* @param parser - The command parser
* @param key - The key name of the time series
* @param fromTimestamp - Start timestamp to delete from
* @param toTimestamp - End timestamp to delete until
*/
parseCommand(parser, key, fromTimestamp, toTimestamp) {
parser.push('TS.DEL');
parser.pushKey(key);
parser.push((0, helpers_1.transformTimestampArgument)(fromTimestamp), (0, helpers_1.transformTimestampArgument)(toTimestamp));
},
transformReply: undefined
};
//# sourceMappingURL=DEL.js.map