chatHistory
that backs chat memory classes like BufferMemory
for an Upstash Redis instance.
sessionTTL
to make sessions expire after a give number of seconds.
The config
parameter is passed directly into the new Redis()
constructor of @upstash/redis, and takes all the same arguments.