Optional
config: { Optional
ttl?: numberProtected
redisProtected
Optional
ttlRetrieves data from the Redis server using a prompt and an LLM key. If the data is not found, it returns null.
The prompt used to find the data.
The LLM key used to find the data.
The corresponding data as an array of Generation objects, or null if not found.
Updates the data in the Redis server using a prompt and an LLM key.
The prompt used to store the data.
The LLM key used to store the data.
The data to be stored, represented as an array of Generation objects.
Generated using TypeDoc
Cache LLM results using Redis.
Example