MCPcopy Create free account
hub / github.com/bsoc-bitbyte/busify / onModuleInit

Method onModuleInit

backend/src/Redis/redis.service.ts:11–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9 });
10 constructor() {}
11 async onModuleInit() {
12 try {
13 await this.client.connect();
14 this.logger.log('Redis connected');
15 } catch (error) {
16 this.logger.error(error);
17 }
18 }
19 getClient() {
20 return this.client;
21 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected