Add Redis client configuration

This commit is contained in:
Justin Edmund 2024-08-05 23:38:40 -07:00
parent e98532daaf
commit ac837fb750

View file

@ -0,0 +1,8 @@
import { Redis } from 'ioredis'
const redis = new Redis({
host: process.env.REDIS_HOST || 'localhost',
port: parseInt(process.env.REDIS_PORT || '6379')
})
export default redis