MCPcopy Index your code
hub / github.com/redis/node-redis / #createCommand

Method #createCommand

packages/client/lib/client/index.ts:308–317  ·  view source on GitHub ↗
(command: Command, resp: RespVersions)

Source from the content-addressed store, hash-verified

306 TYPE_MAPPING extends TypeMapping
307> extends EventEmitter {
308 static #createCommand(command: Command, resp: RespVersions) {
309 const transformReply = getTransformReply(command, resp);
310
311 return async function (this: ProxyClient, ...args: Array<unknown>) {
312 const parser = new BasicCommandParser(this._self._keyPrefix);
313 command.parseCommand(parser, ...args);
314
315 return this._self._executeCommand(command, parser, this._commandOptions, transformReply);
316 }
317 }
318
319 static #createModuleCommand(command: Command, resp: RespVersions) {
320 const transformReply = getTransformReply(command, resp);

Callers

nothing calls this directly

Calls 2

getTransformReplyFunction · 0.90
_executeCommandMethod · 0.80

Tested by

no test coverage detected