Redis fix

This commit is contained in:
Atridad Lahiji 2023-08-12 19:12:01 -06:00 committed by atridadl
parent 549708355c
commit 683e111c92
No known key found for this signature in database

View file

@ -1,7 +1,10 @@
import { Redis } from "@upstash/redis";
import { env } from "~/env.mjs";
import https from "https";
export const redis = Redis.fromEnv();
export const redis = Redis.fromEnv({
agent: new https.Agent({ keepAlive: true }),
});
export const setCache = async <T>(key: string, value: T) => {
try {