feat: Feature 1.1 — Odds API integration complete, 28 tests passing
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
const Redis = require('ioredis');
|
||||
|
||||
let client = null;
|
||||
|
||||
function getRedisClient() {
|
||||
if (!client) {
|
||||
client = new Redis(process.env.REDIS_URL || 'redis://127.0.0.1:6379');
|
||||
}
|
||||
return client;
|
||||
}
|
||||
|
||||
module.exports = { getRedisClient };
|
||||
Reference in New Issue
Block a user