← All projects

Nestjs-redis

by @mouloud240

Active 15

A redis library for nestjs

About this project

NestJS Redis Module A configurable NestJS module to integrate Redis, built on top of ioredis. This module provides a RedisService with a comprehensive set of methods to interact with your Redis server. Features Easy integration with NestJS applications. Built on the robust and performant ioredis library. Configurable using static register or dynamic registerAsync methods. Global module support. Built-in caching interceptor to cache method responses with customizable keys and TTLs. Ai Autotuning of TTL per endpoint (coming very soon). A rich RedisService that covers most Redis commands for various data structures. Usage Import the Module You can import RedisModule into your application's root module (app.module.ts). Static Configuration For simple setups, you can configure the module statically using register. Asynchronous Configuration For more complex setups, like when you need to fetch configuration from a ConfigService, you can use registerAsync. Global Module To make the RedisService available in all modules without importing RedisModule everywhere, you can register it as a global module. Inject and Use RedisService

From the project README on GitHub

Stars
15
Forks
1
License
MIT
Last push
17 May 2026

Add this badge to your README

Show that your project is listed on Made in Algeria.

Made in Algeria
[![Made in Algeria](https://www.madeinalgeria.dev/badge/nestjs-redis.svg)](https://www.madeinalgeria.dev/projects/nestjs-redis)

Related projects