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 });
const generic_transformers_1 = require("./generic-transformers");
exports.default = {
/**
* Add a new element into the vector set specified by key
*
* @param parser - The command parser
* @param key - The name of the key that will hold the vector set data
* @param vector - The vector data as array of numbers
* @param element - The name of the element being added to the vector set
* @param options - Optional parameters for vector addition
* @see https://redis.io/commands/vadd/
*/
parseCommand(parser, key, vector, element, options) {
parser.push('VADD');
parser.pushKey(key);
if (options?.REDUCE !== undefined) {
parser.push('REDUCE', options.REDUCE.toString());
}
parser.push('VALUES', vector.length.toString());
for (const value of vector) {
parser.push((0, generic_transformers_1.transformDoubleArgument)(value));
}
parser.push(element);
if (options?.CAS) {
parser.push('CAS');
}
options?.QUANT && parser.push(options.QUANT);
if (options?.EF !== undefined) {
parser.push('EF', options.EF.toString());
}
if (options?.SETATTR) {
parser.push('SETATTR', JSON.stringify(options.SETATTR));
}
if (options?.M !== undefined) {
parser.push('M', options.M.toString());
}
},
transformReply: generic_transformers_1.transformBooleanReply
};
//# sourceMappingURL=VADD.js.map |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0258 ]-- |