-first commit
This commit is contained in:
28
node_modules/@redis/client/dist/lib/commands/CLUSTER_LINKS.js
generated
vendored
Normal file
28
node_modules/@redis/client/dist/lib/commands/CLUSTER_LINKS.js
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = {
|
||||
NOT_KEYED_COMMAND: true,
|
||||
IS_READ_ONLY: true,
|
||||
/**
|
||||
* Returns information about all cluster links (lower level connections to other nodes)
|
||||
* @param parser - The Redis command parser
|
||||
*/
|
||||
parseCommand(parser) {
|
||||
parser.push('CLUSTER', 'LINKS');
|
||||
},
|
||||
transformReply: {
|
||||
2: (reply) => reply.map(link => {
|
||||
const unwrapped = link;
|
||||
return {
|
||||
direction: unwrapped[1],
|
||||
node: unwrapped[3],
|
||||
'create-time': unwrapped[5],
|
||||
events: unwrapped[7],
|
||||
'send-buffer-allocated': unwrapped[9],
|
||||
'send-buffer-used': unwrapped[11]
|
||||
};
|
||||
}),
|
||||
3: undefined
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=CLUSTER_LINKS.js.map
|
||||
Reference in New Issue
Block a user