diff --git a/cache-handler.mjs b/cache-handler.mjs index 9e93ca1..b1958d3 100644 --- a/cache-handler.mjs +++ b/cache-handler.mjs @@ -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) {