(command: Command, resp: RespVersions)
| 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); |
nothing calls this directly
no test coverage detected