Use inmemory cache
This commit is contained in:
@@ -52,17 +52,18 @@ import { ContactModule } from './contact/contact.module';
|
||||
};
|
||||
},
|
||||
}),
|
||||
CacheModule.registerAsync<RedisClientOptions>({
|
||||
isGlobal: true,
|
||||
inject: [ConfigService],
|
||||
imports: [ConfigModule],
|
||||
useFactory: async (configService: ConfigService) => ({
|
||||
store: redisStore,
|
||||
url: configService.get<string>('redis.url'),
|
||||
family: 6,
|
||||
database: configService.get<number>('redis.db'),
|
||||
}),
|
||||
}),
|
||||
// CacheModule.registerAsync<RedisClientOptions>({
|
||||
// isGlobal: true,
|
||||
// inject: [ConfigService],
|
||||
// imports: [ConfigModule],
|
||||
// useFactory: async (configService: ConfigService) => ({
|
||||
// store: redisStore,
|
||||
// url: configService.get<string>('redis.url'),
|
||||
// family: 6,
|
||||
// database: configService.get<number>('redis.db'),
|
||||
// }),
|
||||
// }),
|
||||
CacheModule.register({ isGlobal: true }),
|
||||
BullModule.forRootAsync({
|
||||
imports: [ConfigModule],
|
||||
inject: [ConfigService],
|
||||
|
Reference in New Issue
Block a user