MCPcopy
hub / github.com/nestjs/nest / createRedisClient

Method createRedisClient

packages/microservices/server/server-redis.ts:115–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113 }
114
115 public createRedisClient(): Redis {
116 const clientInfoTag = this.getOptionsProp(this.options, 'clientInfoTag');
117 return new redisPackage({
118 port: REDIS_DEFAULT_PORT,
119 host: REDIS_DEFAULT_HOST,
120 ...this.getClientOptions(),
121 ...(clientInfoTag && { clientInfoTag }),
122 lazyConnect: true,
123 });
124 }
125
126 public getMessageHandler(pub: Redis) {
127 return this.options?.wildcards

Callers 2

listenMethod · 0.95

Calls 1

getClientOptionsMethod · 0.95

Tested by

no test coverage detected