From d9dfda60d8ee7988d8450e7e0a5e2220a610f69b Mon Sep 17 00:00:00 2001 From: Chip Wasson Date: Wed, 30 Oct 2024 14:40:29 -0600 Subject: [PATCH] Use inmemory cache --- src/app.module.ts | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/app.module.ts b/src/app.module.ts index 3967299..3c75863 100644 --- a/src/app.module.ts +++ b/src/app.module.ts @@ -52,17 +52,18 @@ import { ContactModule } from './contact/contact.module'; }; }, }), - CacheModule.registerAsync({ - isGlobal: true, - inject: [ConfigService], - imports: [ConfigModule], - useFactory: async (configService: ConfigService) => ({ - store: redisStore, - url: configService.get('redis.url'), - family: 6, - database: configService.get('redis.db'), - }), - }), + // CacheModule.registerAsync({ + // isGlobal: true, + // inject: [ConfigService], + // imports: [ConfigModule], + // useFactory: async (configService: ConfigService) => ({ + // store: redisStore, + // url: configService.get('redis.url'), + // family: 6, + // database: configService.get('redis.db'), + // }), + // }), + CacheModule.register({ isGlobal: true }), BullModule.forRootAsync({ imports: [ConfigModule], inject: [ConfigService],