etha.kvstore#
KV Store abstraction for distributed coordination.
Submodules#
Functions#
|
Create a KVStore instance. |
Package Contents#
- etha.kvstore.create_store(host: str = 'localhost', port: int | None = None, backend: Literal['etcd', 'tcp'] = 'tcp', timeout: float = 3600.0, namespace: str = 'default', component: str = 'tensorbus') base.KVStore#
Create a KVStore instance.
- Parameters:
host – Server host
port – Server port (default: 2379 for etcd, 29500 for tcp)
backend – “etcd” or “tcp”
timeout – Connection timeout in seconds
namespace – Namespace for key isolation
component – Default component name
- Returns:
KVStore instance