UpstashRedisCacheProps: {
    client?: Redis;
    config?: RedisConfigNodejs;
    ttl?: number;
}

Type declaration

  • Optionalclient?: Redis

    An existing Upstash Redis client.

  • Optionalconfig?: RedisConfigNodejs

    The config to use to instantiate an Upstash Redis client.

  • Optionalttl?: number

    Time-to-live (TTL) for cached items in seconds.