From 22039b57f7946b52e6a545c79dae40331a14da28 Mon Sep 17 00:00:00 2001 From: minsuKang <90169703+minchodang@users.noreply.github.com> Date: Fri, 13 Sep 2024 17:22:55 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=EB=B6=88=ED=95=84=EC=9A=94=ED=95=9C?= =?UTF-8?q?=20redis=20=ED=8C=8C=EC=9D=BC=20=EC=82=AD=EC=A0=9C=20(#44)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/database/redis/redis.module.ts | 25 ------------------------- src/database/redis/redis.service.ts | 20 -------------------- 2 files changed, 45 deletions(-) delete mode 100644 src/database/redis/redis.module.ts delete mode 100644 src/database/redis/redis.service.ts diff --git a/src/database/redis/redis.module.ts b/src/database/redis/redis.module.ts deleted file mode 100644 index c92a53b..0000000 --- a/src/database/redis/redis.module.ts +++ /dev/null @@ -1,25 +0,0 @@ -// import { Module, Global } from '@nestjs/common'; -// import Redis from 'ioredis'; -// import { RedisService } from './redis.service'; - -// @Global() -// @Module({ -// providers: [ -// { -// provide: 'REDIS_CLIENT', -// useFactory: () => { -// return new Redis.Cluster( -// [ -// { -// host: 'dev-metacognition-test.ajgfyp.clustercfg.apn2.cache.amazonaws.com:6379', -// }, -// ], -// { enableReadyCheck: false, maxRedirections: null }, -// ); -// }, -// }, -// RedisService, -// ], -// exports: ['REDIS_CLIENT', RedisService], -// }) -// export class RedisModule {} diff --git a/src/database/redis/redis.service.ts b/src/database/redis/redis.service.ts deleted file mode 100644 index aa542ca..0000000 --- a/src/database/redis/redis.service.ts +++ /dev/null @@ -1,20 +0,0 @@ -// import { Inject, Injectable } from '@nestjs/common'; -// import { Cluster } from 'ioredis'; - -// @Injectable() -// export class RedisService { -// constructor(@Inject('REDIS_CLIENT') private redis: Cluster) {} - -// async getKeys() { -// const keys = await this.redis.keys('*'); -// return keys; -// } - -// async getOne(key: string) { -// return await this.redis.get(key); -// } - -// async setOne(data: { key: string; value: string }) { -// return await this.redis.set(data.key, data.value); -// } -// }