-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: 내보내기 전 db를 미리 초기화 * refactor: 내보내기 전 redis를 초기화 * feat: `/openapi.json` 경로 추가 * fix: 업데이트 빈도를 1일 1회로 낮춤
- Loading branch information
Showing
3 changed files
with
28 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,9 @@ | ||
import { createClient } from "redis"; | ||
|
||
//default local 127.0.0.1:6379 | ||
const redisClient = createClient(); | ||
|
||
await redisClient.connect(); | ||
console.log("redis is connected"); | ||
|
||
redisClient.on("ready", () => { | ||
console.log("redis is ready"); | ||
}); | ||
|
||
redisClient.on("error", (error) => { | ||
console.log(error); | ||
}); | ||
const redisClient = await createClient() | ||
.on("ready", () => console.log("redis is ready")) | ||
.on("error", (error) => console.log("redis error:", error)) | ||
.connect(); | ||
|
||
export default redisClient; |