A NestJS module for integrating Redis with cluster support, based on ioredis. Current stable version is 2.1.0. It provides RedisModule and RedisService to inject Redis clients into NestJS applications, supporting multiple named clients, async configuration, and custom error handlers. Released under MIT. Differentiates from other NestJS Redis libraries by offering explicit cluster support and straightforward registration patterns, though it requires careful handling of peer dependencies and module configuration.
npm install nestjs-redis-clusterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to register RedisModule synchronously with basic options.
Install ioredis@4.x as a dependency.
Define a 'name' for each client when using multi-client setup.
Use RedisModule.registerAsync method instead.
Ensure 'onClientReady' attaches an error listener.
Run npm install nestjs-redis-cluster ioredis@4.x @nestjs/core @nestjs/common rxjs uuid
Install ioredis@4.x: npm install ioredis@4
Use named import: import { RedisModule } from 'nestjs-redis-cluster'