From 087f71caa534c9fea800171b3f97ca86059cb611 Mon Sep 17 00:00:00 2001 From: atridadl Date: Tue, 21 Nov 2023 09:32:54 -0700 Subject: [PATCH] ??? --- app/_lib/redis.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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);