-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
I think It shouldn't depend on RedisModule from '@liaoliaots/nestjs-redis. It should work with official CacheModule from @nestjs/cache-manager
CacheModule.registerAsync<RedisClientOptions>({
isGlobal: true,
imports: [ConfigModule],
inject: [ConfigService],
useFactory: async (configService: ConfigService) => {
const store = await redisStore({
clusterConfig: {
nodes:[
{
host: configService.get('REDIS_HOST'),
port: configService.get('REDIS_PORT'),
}
],
options: {
enableOfflineQueue: true,
}
}
});
return {
store: store as unknown as CacheStore,
};
}
}),
RedisLockModule.register({}), // import RedisLockModule, use default configuration
rebeccamcdougal, asithade and wrheinheimer
Metadata
Metadata
Assignees
Labels
No labels