pollo/src/server/redis.ts

7 lines
156 B
TypeScript
Raw Normal View History

2023-06-18 23:45:04 -06:00
import { Redis } from "@upstash/redis";
2023-06-29 00:16:47 -06:00
import https from "https";
2023-06-18 23:45:04 -06:00
2023-06-29 16:52:23 -06:00
export const redis = Redis.fromEnv({
2023-06-29 00:16:47 -06:00
agent: new https.Agent({ keepAlive: true }),
2023-06-18 23:45:04 -06:00
});