mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-01-30 16:43:37 +00:00
Fix Compile Issues (once and for all)
This commit is contained in:
parent
80d0f53c70
commit
5b578ff9b5
1 changed files with 11 additions and 1 deletions
|
@ -1,4 +1,14 @@
|
|||
import redis from './lib/redis.js';
|
||||
import Redis from 'ioredis';
|
||||
|
||||
let redis;
|
||||
|
||||
if (!redis) {
|
||||
redis = new Redis(process.env.REDIS_URL);
|
||||
|
||||
redis.on('error', (err) => {
|
||||
console.error('Redis Client Error:', err);
|
||||
});
|
||||
}
|
||||
|
||||
export default class CacheHandler {
|
||||
constructor(options) {
|
||||
|
|
Loading…
Reference in a new issue