Redis
Redis文档存储 #
基类:EventKVDocumentStore
Redis 文档(Node)存储。
用于存储文档和节点对象的Redis存储。
参数:
| 名称 | 类型 | 描述 | 默认 |
|---|---|---|---|
redis_kvstore
|
RedisKVStore
|
Redis 键值存储 |
required |
namespace
|
str
|
文档存储的命名空间 |
None
|
workflows/handler.py 中的源代码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 50 | |
from_redis_client
classmethod
#
from_redis_client(redis_client: Any, namespace: Optional[str] = None) -> RedisDocumentStore
从 Redis 客户端加载 RedisDocumentStore。
workflows/handler.py 中的源代码llama_index/storage/docstore/redis/base.py
31 32 33 34 35 36 37 38 39 | |
from_host_and_port
classmethod
#
from_host_and_port(host: str, port: int, namespace: Optional[str] = None) -> RedisDocumentStore
从 Redis 主机和端口加载 RedisDocumentStore。
workflows/handler.py 中的源代码llama_index/storage/docstore/redis/base.py
41 42 43 44 45 46 47 48 49 50 | |
选项: 成员:- RedisDocumentStore