-first commit
This commit is contained in:
25
node_modules/@redis/client/dist/lib/commands/CONFIG_SET.js
generated
vendored
Normal file
25
node_modules/@redis/client/dist/lib/commands/CONFIG_SET.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = {
|
||||
NOT_KEYED_COMMAND: true,
|
||||
IS_READ_ONLY: true,
|
||||
/**
|
||||
* Sets configuration parameters to the specified values
|
||||
* @param parser - The Redis command parser
|
||||
* @param parameterOrConfig - Either a single parameter name or a configuration object
|
||||
* @param value - Value for the parameter (when using single parameter format)
|
||||
*/
|
||||
parseCommand(parser, ...[parameterOrConfig, value]) {
|
||||
parser.push('CONFIG', 'SET');
|
||||
if (typeof parameterOrConfig === 'string' || parameterOrConfig instanceof Buffer) {
|
||||
parser.push(parameterOrConfig, value);
|
||||
}
|
||||
else {
|
||||
for (const [key, value] of Object.entries(parameterOrConfig)) {
|
||||
parser.push(key, value);
|
||||
}
|
||||
}
|
||||
},
|
||||
transformReply: undefined
|
||||
};
|
||||
//# sourceMappingURL=CONFIG_SET.js.map
|
||||
Reference in New Issue
Block a user