Fix Compile Issues (once and for all)

This commit is contained in:
Ahmad 2025-01-26 16:13:41 -05:00
parent 80d0f53c70
commit 5b578ff9b5
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF

View file

@ -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) {