A NestJS module for integrating ioredis, providing Redis connection management for NestJS applications. Current stable version is 1.3.3. It supports single and multiple Redis client configurations, synchronous and asynchronous module registration, and customization of ioredis options. Compared to other NestJS Redis packages, it offers a simple API with RedisService to get client instances and supports features like connection pooling and custom error handling. Release cadence is low; last update was in 2020.
npm install nestjs-redisNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Registers RedisModule with connection options and uses RedisService to get a client and perform a Redis SET command.
Use await when calling this.redisService.getClient() or handle the promise with .then().
Replace forRootAsync with registerAsync.
Ensure each client config has a distinct 'name' property.
Refer to ioredis documentation for supported options.
Run 'npm install nestjs-redis' in your project root.
Use 'import { RedisService } from 'nestjs-redis'' instead of 'import RedisService from 'nestjs-redis''.Ensure call: 'const client = await this.redisService.getClient();' and that client name exists.