feat: integrate Redis and Database modules with necessary dependencies

This commit is contained in:
Boris D
2025-09-22 13:14:19 +03:00
parent 72b020b9f7
commit 5ffb9f3d9c
6 changed files with 169 additions and 14 deletions

View File

@ -0,0 +1,12 @@
import { RedisService } from "@liaoliaots/nestjs-redis";
import { Injectable } from "@nestjs/common";
import Redis from "ioredis";
@Injectable()
export class RedisClient {
private readonly redis: Redis | null;
constructor(private readonly redisService: RedisService) {
this.redis = this.redisService.getOrThrow();
}
}