how to prevent terminal stop when error occurs during the redis connection?
import { Logger, Module } from ‘@nestjs/common’; import { SmModule } from ‘@edda/sm’; import { CacheModule } from ‘@nestjs/cache-manager’; import * as redisStore from ‘cache-manager-redis-store’; import { RedisService } from ‘libs/src/lib/core/services/redis.service’; import * as fs from ‘fs’; @Module({ imports: [ SmModule, CacheModule.registerAsync({ isGlobal: true, useFactory: async () => { const store = await redisStore.create({ host: […]