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.createTransformMGetLabelsReply = void 0;
const MGET_1 = require("./MGET");
const helpers_1 = require("./helpers");
function createTransformMGetLabelsReply() {
return {
2(reply, _, typeMapping) {
return (0, helpers_1.resp2MapToValue)(reply, ([, labels, sample]) => {
return {
labels: (0, helpers_1.transformRESP2Labels)(labels),
sample: helpers_1.transformSampleReply[2](sample)
};
}, typeMapping);
},
3(reply) {
return (0, helpers_1.resp3MapToValue)(reply, ([labels, sample]) => {
return {
labels,
sample: helpers_1.transformSampleReply[3](sample)
};
});
}
};
}
exports.createTransformMGetLabelsReply = createTransformMGetLabelsReply;
exports.default = {
IS_READ_ONLY: true,
/**
* Gets the last samples matching a specific filter with labels
* @param parser - The command parser
* @param filter - Filter to match time series keys
* @param options - Optional parameters for the command
*/
parseCommand(parser, filter, options) {
parser.push('TS.MGET');
(0, MGET_1.parseLatestArgument)(parser, options?.LATEST);
parser.push('WITHLABELS');
(0, MGET_1.parseFilterArgument)(parser, filter);
},
transformReply: createTransformMGetLabelsReply(),
};
//# sourceMappingURL=MGET_WITHLABELS.js.map |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0069 ]-- |