Skip to content

Commit

Permalink
use redis
Browse files Browse the repository at this point in the history
  • Loading branch information
cubeghost committed Feb 15, 2024
1 parent 1812ace commit f866687
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/server/redis.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
require('dotenv').config();

const IORedis = require('ioredis');
var redis = require('redis');

const connection = new IORedis(process.env.REDIS_URL, {
maxRetriesPerRequest: null,
enableReadyCheck: false,
});
var client = redis.createClient(process.env.REDIS_URL);

module.exports = connection;
module.exports = client;

0 comments on commit f866687

Please sign in to comment.