MCPcopy
hub / github.com/redis/node-redis / #createModuleCommand

Method #createModuleCommand

packages/client/lib/client/pool.ts:129–138  ·  view source on GitHub ↗
(command: Command, resp: RespVersions)

Source from the content-addressed store, hash-verified

127 }
128
129 static #createModuleCommand(command: Command, resp: RespVersions) {
130 const transformReply = getTransformReply(command, resp);
131
132 return async function (this: NamespaceProxyPool, ...args: Array<unknown>) {
133 const parser = new BasicCommandParser(this._self._keyPrefix);
134 command.parseCommand(parser, ...args);
135
136 return this._self.execute(client => client._executeCommand(command, parser, this._self._commandOptions, transformReply))
137 };
138 }
139
140 static #createFunctionCommand(name: string, fn: RedisFunction, resp: RespVersions) {
141 const prefix = functionArgumentsPrefix(name, fn);

Callers

nothing calls this directly

Calls 3

getTransformReplyFunction · 0.90
_executeCommandMethod · 0.80
executeMethod · 0.45

Tested by

no test coverage detected