Updated Types and Fixed Imports

This commit is contained in:
Ahmad 2025-01-26 00:11:30 -05:00
parent e0be79f5fd
commit e9b6d28591
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,4 @@
import { redis } from '@/lib/redis';
import redis from './lib/redis'
export default class CacheHandler {
constructor(options) {

View file

@ -1,6 +1,6 @@
import Redis from 'ioredis';
let redis;
let redis: Redis | null = null;
if (!redis) {
redis = new Redis(process.env.REDIS_URL!);