storage#

Storage is an implementation of key-value store.

Storage module provides implementations of various key-value stores that conform to a simple key-value interface.

The primary goal of these storages is to support caching.

Class hierarchy:

BaseStore --> <name>Store  # Examples: MongoDBStore, RedisStore

Classes

storage.astradb.AstraDBBaseStore(*args, **kwargs)

Base class for the DataStax AstraDB data store.

storage.cassandra.CassandraByteStore(table, *)

A ByteStore implementation using Cassandra as the backend.

storage.mongodb.MongoDBByteStore(...[, ...])

BaseStore implementation using MongoDB as the underlying store.

storage.mongodb.MongoDBStore(...[, ...])

BaseStore implementation using MongoDB as the underlying store.

storage.redis.RedisStore(*[, client, ...])

BaseStore implementation using Redis as the underlying store.

storage.sql.LangchainKeyValueStores(**kwargs)

Table used to save values.

storage.sql.SQLStore(*, namespace[, db_url, ...])

BaseStore interface that works on an SQL database.

storage.upstash_redis.UpstashRedisByteStore(*)

BaseStore implementation using Upstash Redis as the underlying store to store raw bytes.

Functions

Deprecated classes