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

Method #createModuleCommand

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

Source from the content-addressed store, hash-verified

317 }
318
319 static #createModuleCommand(command: Command, resp: RespVersions) {
320 const transformReply = getTransformReply(command, resp);
321
322 return async function (this: NamespaceProxyClient, ...args: Array<unknown>) {
323 const parser = new BasicCommandParser(this._self._keyPrefix);
324 command.parseCommand(parser, ...args);
325
326 return this._self._executeCommand(command, parser, this._self._commandOptions, transformReply);
327 };
328 }
329
330 static #createFunctionCommand(name: string, fn: RedisFunction, resp: RespVersions) {
331 const prefix = functionArgumentsPrefix(name, fn);

Callers

nothing calls this directly

Calls 2

getTransformReplyFunction · 0.90
_executeCommandMethod · 0.80

Tested by

no test coverage detected