v5.0.0
What's Changed
⚠️ BREAKING CHANGES
- The default redis client will not be created if you do not specify the
config
option.
Migration from v4 to v5
If your redis server does not have a password, the host is 127.0.0.1 and the port is 6379:
v4
The default redis client will be created if you do not specify the config
option:
import { Module } from '@nestjs/common';
import { RedisModule } from '@liaoliaots/nestjs-redis';
@Module({
imports: [RedisModule.forRoot()]
})
export class AppModule {}
v5
The default redis client will not be created if you do not specify the config
option, so you have to specify the config
option:
import { Module } from '@nestjs/common';
import { RedisModule } from '@liaoliaots/nestjs-redis';
@Module({
imports: [RedisModule.forRoot({ closeClient: true, config: { host: '127.0.0.1', port: 6379 } })]
})
export class AppModule {}
Documentation
- update readme menu
- update examples
- update redis