issue # nestjs 로 초기화

This commit is contained in:
geonhee-min
2025-11-21 15:18:37 +09:00
parent ce50a53256
commit 0170421d16
57 changed files with 2483 additions and 143 deletions

19
src/redis/redis.module.ts Normal file
View File

@@ -0,0 +1,19 @@
import { Global, Module } from "@nestjs/common";
import Redis from "ioredis";
@Global()
@Module({
providers: [
{
provide: "REDIS",
useFactory: () => {
return new Redis({
host: process.env.RD_HOST!,
port: Number(process.env.RD_PORT || 6779)
});
}
},
],
exports: ["REDIS"]
})
export class RedisModule{}