Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/sync/node_modules/@redis/time-series/dist/lib/commands/ drwxr-xr-x | |
| Viewing file: Select action/file-type: "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseIncrByArguments = void 0;
const helpers_1 = require("./helpers");
/**
* Parses arguments for incrementing a time series value
* @param parser - The command parser
* @param key - The key name of the time series
* @param value - The value to increment by
* @param options - Optional parameters for the command
*/
function parseIncrByArguments(parser, key, value, options) {
parser.pushKey(key);
parser.push(value.toString());
if (options?.TIMESTAMP !== undefined && options?.TIMESTAMP !== null) {
parser.push('TIMESTAMP', (0, helpers_1.transformTimestampArgument)(options.TIMESTAMP));
}
(0, helpers_1.parseRetentionArgument)(parser, options?.RETENTION);
if (options?.UNCOMPRESSED) {
parser.push('UNCOMPRESSED');
}
(0, helpers_1.parseChunkSizeArgument)(parser, options?.CHUNK_SIZE);
(0, helpers_1.parseLabelsArgument)(parser, options?.LABELS);
(0, helpers_1.parseIgnoreArgument)(parser, options?.IGNORE);
}
exports.parseIncrByArguments = parseIncrByArguments;
exports.default = {
IS_READ_ONLY: false,
/**
* Increases the value of a time series by a given amount
* @param args - Arguments passed to the {@link parseIncrByArguments} function
*/
parseCommand(...args) {
const parser = args[0];
parser.push('TS.INCRBY');
parseIncrByArguments(...args);
},
transformReply: undefined
};
//# sourceMappingURL=INCRBY.js.map |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0066 ]-- |