Skip to content

Commit

Permalink
fix: correctly create redis client url
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewL246 committed Jul 2, 2024
1 parent 663fcf2 commit 3cc53c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/redisCache.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ const logger = require('./logger');
const config = require('../config.json');
const { host, port } = config.redis;

const redisClient = redis.createClient({ host, port });
const redisClient = redis.createClient({
url: `redis://${host}:${port}`
});

redisClient.on('error', (error) => {
logger.error(error);
Expand Down

0 comments on commit 3cc53c6

Please sign in to comment.