Skip to content

Implemented Redis Caching#144

Merged
nafiuishaaq merged 1 commit intoMentoNest:mainfrom
Mkalbani:feat/redis
Jan 24, 2026
Merged

Implemented Redis Caching#144
nafiuishaaq merged 1 commit intoMentoNest:mainfrom
Mkalbani:feat/redis

Conversation

@Mkalbani
Copy link
Contributor

closes #118

Redis Caching Integration

Integrate Redis caching for response caching and future rate-limiting in drips.

Changes:

  • Install @nestjs/cache-manager, cache-manager, ioredis, cache-manager-redis-store
  • Configure CacheModule.registerAsync with Redis store using environment variables (REDIS_HOST, REDIS_PORT, REDIS_PASSWORD, REDIS_DB)
  • Add sample cached endpoint GET /cached-data with @UseInterceptors(CacheInterceptor) decorator
  • 5-minute default TTL configured for cache entries

Testing:

  • Redis connects on app startup via AppConfigService
  • Cache hits observable: /cached-data returns same timestamp on repeated calls within TTL window

@nafiuishaaq nafiuishaaq merged commit 1aa602e into MentoNest:main Jan 24, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

XX 3 : Add Redis for caching

2 participants