diff --git a/app/_lib/redis.ts b/app/_lib/redis.ts index 67b69e1..2e36f2d 100644 --- a/app/_lib/redis.ts +++ b/app/_lib/redis.ts @@ -1,7 +1,11 @@ import { Redis } from "ioredis"; import { env } from "env.mjs"; -export const redis = env.REDIS_URL ? new Redis(env.REDIS_URL) : null; +export const redis = env.REDIS_URL + ? new Redis(env.REDIS_URL, { + family: 6, + }) + : null; export const setCache = async (key: string, value: T) => { console.log(env.REDIS_URL);