MCPcopy
hub / github.com/redis/node-redis / getTransformReply

Function getTransformReply

packages/client/lib/commander.ts:108–116  ·  view source on GitHub ↗
(command: Command, resp: RespVersions)

Source from the content-addressed store, hash-verified

106}
107
108export function getTransformReply(command: Command, resp: RespVersions): TransformReply | undefined {
109 switch (typeof command.transformReply) {
110 case 'function':
111 return command.transformReply;
112
113 case 'object':
114 return command.transformReply[resp];
115 }
116}
117
118export function functionArgumentsPrefix(name: string, fn: RedisFunction) {
119 const prefix: Array<RedisArgument> = [

Callers 15

#createCommandMethod · 0.90
#createModuleCommandMethod · 0.90
#createScriptCommandMethod · 0.90
getTransformReplyMethod · 0.90
#createCommandMethod · 0.90
#createModuleCommandMethod · 0.90
#createScriptCommandMethod · 0.90
#createCommandMethod · 0.90
#createModuleCommandMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected