UpstashRedisByteStore
This will help you get started with Upstash redis key-value stores. For detailed documentation of all UpstashRedisByteStore
features and configurations head to the API reference.
Overview
The UpstashRedisStore
is an implementation of ByteStore
that stores everything in your Upstash-hosted Redis instance.
To use the base RedisStore
instead, see this guide.
Integration details
Class | Package | Local | JS support | Package downloads | Package latest |
---|---|---|---|---|---|
UpstashRedisByteStore | langchain_community | ❌ | ✅ |
Setup
You'll first need to sign up for an Upstash account. Next, you'll need to create a Redis database to connect to.
Credentials
Once you've created your database, get your database URL (don't forget the https://
!) and token:
from getpass import getpass
URL = getpass("Enter your Upstash URL")
TOKEN = getpass("Enter your Upstash REST token")