Update redis-client.ts

This commit is contained in:
Justin Edmund 2024-08-06 00:25:50 -07:00
parent 1e75fb6d7d
commit c298e8cde5

View file

@ -1,9 +1,6 @@
import 'dotenv/config'
import { Redis } from 'ioredis'
const redis = new Redis({
host: process.env.REDISHOST || 'localhost',
port: parseInt(process.env.REDISPORT || '6379')
})
const redis = new Redis(process.env.REDIS_URL || 'redis://localhost:6379')
export default redis