Optional
agent?: anyAn agent allows you to reuse connections to reduce latency for multiple sequential requests.
This is a node specific implementation and is not supported in various runtimes like Vercel edge functions.
import https from "https"
const options: RedisConfigNodejs = {
agent: new https.Agent({ keepAlive: true })
}
UPSTASH_REDIS_REST_TOKEN
UPSTASH_REDIS_REST_URL
Connection credentials for upstash redis. Get them from https://console.upstash.com/redis/