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 });
const helpers_1 = require("./helpers");
exports.default = {
IS_READ_ONLY: false,
/**
* Creates or appends a sample to a time series
* @param parser - The command parser
* @param key - The key name for the time series
* @param timestamp - The timestamp of the sample
* @param value - The value of the sample
* @param options - Optional configuration parameters
*/
parseCommand(parser, key, timestamp, value, options) {
parser.push('TS.ADD');
parser.pushKey(key);
parser.push((0, helpers_1.transformTimestampArgument)(timestamp), value.toString());
(0, helpers_1.parseRetentionArgument)(parser, options?.RETENTION);
(0, helpers_1.parseEncodingArgument)(parser, options?.ENCODING);
(0, helpers_1.parseChunkSizeArgument)(parser, options?.CHUNK_SIZE);
if (options?.ON_DUPLICATE) {
parser.push('ON_DUPLICATE', options.ON_DUPLICATE);
}
(0, helpers_1.parseLabelsArgument)(parser, options?.LABELS);
(0, helpers_1.parseIgnoreArgument)(parser, options?.IGNORE);
},
transformReply: undefined
};
//# sourceMappingURL=ADD.js.map |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.2011 ]-- |