Redis fix
This commit is contained in:
parent
549708355c
commit
683e111c92
1 changed files with 4 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue