Skip to content

Commit

Permalink
chore:
Browse files Browse the repository at this point in the history
  • Loading branch information
이은상 committed Dec 26, 2024
1 parent d479481 commit 59b6141
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 7_auth/7_1_express_js/src/controllers/RedisController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ import { Request, Response } from "express";
import Redis, { RedisKey } from "ioredis";
import { useMiddleware } from "../decorators/LogDecorator";

const REDIS_HOST = process.env.REDIS_HOST!;

// docker run -d -p 6379:6379 --name redis redis
// Create a new Redis client
const redis = new Redis({
host: 'localhost',
host: REDIS_HOST || 'localhost',
port: 6379,
});

Expand Down

0 comments on commit 59b6141

Please sign in to comment.