Redis fix

This commit is contained in:
Atridad Lahiji 2023-08-12 19:12:01 -06:00
parent b117575ea4
commit 27c7300b44
No known key found for this signature in database
GPG key ID: 7CB8245F56BC3880

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 {