⚠️ Internal: This API is not publically exported by the package.

Type alias RedisConfigNodejs

RedisConfigNodejs: {
    agent?: any;
    token: string;
    url: string;
} & RedisOptions & RequesterConfig

Connection credentials for upstash redis. Get them from https://console.upstash.com/redis/

Type declaration

  • Optional agent?: any

    An 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.

    Example

    import https from "https"

    const options: RedisConfigNodejs = {
    agent: new https.Agent({ keepAlive: true })
    }
  • token: string

    UPSTASH_REDIS_REST_TOKEN

  • url: string

    UPSTASH_REDIS_REST_URL