(name: string, fn: RedisFunction, resp: RespVersions)
| 138 | } |
| 139 | |
| 140 | static #createFunctionCommand(name: string, fn: RedisFunction, resp: RespVersions) { |
| 141 | const prefix = functionArgumentsPrefix(name, fn); |
| 142 | const transformReply = getTransformReply(fn, resp); |
| 143 | |
| 144 | return async function (this: NamespaceProxyPool, ...args: Array<unknown>) { |
| 145 | const parser = new BasicCommandParser(this._self._keyPrefix); |
| 146 | parser.push(...prefix); |
| 147 | fn.parseCommand(parser, ...args); |
| 148 | |
| 149 | return this._self.execute(client => client._executeCommand(fn, parser, this._self._commandOptions, transformReply)) }; |
| 150 | } |
| 151 | |
| 152 | static #createScriptCommand(script: RedisScript, resp: RespVersions) { |
| 153 | const prefix = scriptArgumentsPrefix(script); |
nothing calls this directly
no test coverage detected