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/client/dist/lib/commands/ drwxr-xr-x | |
| Viewing file: Select action/file-type: "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseMSetArguments = void 0;
function parseMSetArguments(parser, toSet) {
if (Array.isArray(toSet)) {
if (toSet.length == 0) {
throw new Error("empty toSet Argument");
}
if (Array.isArray(toSet[0])) {
for (const tuple of toSet) {
parser.pushKey(tuple[0]);
parser.push(tuple[1]);
}
}
else {
const arr = toSet;
for (let i = 0; i < arr.length; i += 2) {
parser.pushKey(arr[i]);
parser.push(arr[i + 1]);
}
}
}
else {
for (const tuple of Object.entries(toSet)) {
parser.pushKey(tuple[0]);
parser.push(tuple[1]);
}
}
}
exports.parseMSetArguments = parseMSetArguments;
exports.default = {
IS_READ_ONLY: true,
/**
* Constructs the MSET command
*
* @param parser - The command parser
* @param toSet - Key-value pairs to set (array of tuples, flat array, or object)
* @see https://redis.io/commands/mset/
*/
parseCommand(parser, toSet) {
parser.push('MSET');
return parseMSetArguments(parser, toSet);
},
transformReply: undefined
};
//# sourceMappingURL=MSET.js.map |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0291 ]-- |