RedisStore
features and configurations head to the API reference.
Overview
TheRedisStore
is an implementation of ByteStore
that stores everything in your Redis instance.
Integration details
Class | Package | Local | JS support | Downloads | Version |
---|---|---|---|---|---|
RedisStore | langchain-community | ✅ | ✅ |
Setup
To create a Redis byte store, you’ll need to set up a Redis instance. You can do this locally or via a provider - see our Redis guide for an overview of options.Installation
The LangChainRedisStore
integration lives in the langchain-community
package:
Instantiation
Now we can instantiate our byte store:Usage
You can set data under keys like this using themset
method:
mdelete
method:
API reference
For detailed documentation of allRedisStore
features and configurations, head to the API reference: python.langchain.com/api_reference/community/storage/langchain_community.storage.redis.RedisStore.html