-first commit
This commit is contained in:
30
node_modules/@redis/client/dist/lib/commands/SHUTDOWN.js
generated
vendored
Normal file
30
node_modules/@redis/client/dist/lib/commands/SHUTDOWN.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = {
|
||||
NOT_KEYED_COMMAND: true,
|
||||
IS_READ_ONLY: false,
|
||||
/**
|
||||
* Constructs the SHUTDOWN command
|
||||
*
|
||||
* @param parser - The command parser
|
||||
* @param options - Options for the shutdown process
|
||||
* @see https://redis.io/commands/shutdown/
|
||||
*/
|
||||
parseCommand(parser, options) {
|
||||
parser.push('SHUTDOWN');
|
||||
if (options?.mode) {
|
||||
parser.push(options.mode);
|
||||
}
|
||||
if (options?.NOW) {
|
||||
parser.push('NOW');
|
||||
}
|
||||
if (options?.FORCE) {
|
||||
parser.push('FORCE');
|
||||
}
|
||||
if (options?.ABORT) {
|
||||
parser.push('ABORT');
|
||||
}
|
||||
},
|
||||
transformReply: undefined
|
||||
};
|
||||
//# sourceMappingURL=SHUTDOWN.js.map
|
||||
Reference in New Issue
Block a user