Redis
RedisDocumentStore #
Bases: KVDocumentStore
Redis Document (Node) store.
A Redis store for Document and Node objects.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
redis_kvstore |
RedisKVStore
|
Redis key-value store |
required |
namespace |
str
|
namespace for the docstore |
None
|
Source code in llama-index-integrations/storage/docstore/llama-index-storage-docstore-redis/llama_index/storage/docstore/redis/base.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
|
from_redis_client
classmethod
#
from_redis_client(redis_client: Any, namespace: Optional[str] = None) -> RedisDocumentStore
Load a RedisDocumentStore from a Redis Client.
Source code in llama-index-integrations/storage/docstore/llama-index-storage-docstore-redis/llama_index/storage/docstore/redis/base.py
30 31 32 33 34 35 36 37 38 |
|
from_host_and_port
classmethod
#
from_host_and_port(host: str, port: int, namespace: Optional[str] = None) -> RedisDocumentStore
Load a RedisDocumentStore from a Redis host and port.
Source code in llama-index-integrations/storage/docstore/llama-index-storage-docstore-redis/llama_index/storage/docstore/redis/base.py
40 41 42 43 44 45 46 47 48 49 |
|