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