A cache that uses Upstash as the backing store. See https://docs.upstash.com/redis.

Hierarchy

Constructors

Methods

Constructors

Methods

  • Update the cache with the given generations.

    Note this overwrites any existing generations for the given prompt and LLM key.

    Parameters

    • prompt: string
    • llmKey: string
    • value: Generation[]

    Returns Promise<void>

Generated using TypeDoc