Skip to content
This repository has been archived by the owner on Aug 10, 2024. It is now read-only.

PokeGuys/nestjs-redis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NestJS Redis

CI npm version dependencies license codecov

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.

License

MIT License