1.1.1 • Published 3 years ago
@pokeguys/nestjs-redis v1.1.1
NestJS Redis
ioredis module for Nest that supported cluster, sentinel mode.
Quick Start
Installation
$ npm i --save @pokeguys/nestjs-redis ioredis
# or
$ yarn add @pokeguys/nestjs-redis ioredis
Usage
// app.module.ts
@Module({
imports: [
RedisModule.forRoot({ uri: 'redis://localhost:6379/' }),
],
})
export class AppModule {}
// app.service.ts
@Injectable()
export class AppService {
constructor(@InjectRedis() private readonly redis: RedisClient) {}
}
Documentation
you can find all the documentation here for the redis module.