Skip to content

Commit

Permalink
feat: update redis constructor call
Browse files Browse the repository at this point in the history
change from new Redis() to new Redis.Cluster()
  • Loading branch information
PAYNEA03 committed Jul 25, 2023
1 parent 17b33e9 commit 06f1c5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/redis/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export async function createRedisInstance(config = getRedisConfiguration()) {
options.password = config.password;
}

const redis = new Redis(options);
const redis = new Redis.Cluster(options);

redis.on('error', error => {
console.warn('[Redis] Error connecting', error);
Expand Down

0 comments on commit 06f1c5a

Please sign in to comment.