StaticcreateCreate a new Hybrid KV store with default settings.
Port of HybridKv::new() from hybrid/kv.rs lines 75-84.
IPFS RPC endpoint (e.g., "http://127.0.0.1:5001")
Set custom DHT size limit (default: 1000 bytes).
Envelopes larger than this will use IPFS indirection.
Port of HybridKv::with_dht_size_limit() from hybrid/kv.rs lines 89-92.
Set whether to pin content in IPFS (default: false).
Only affects envelopes stored in IPFS (when larger than DHT limit).
Port of HybridKv::with_pin_content() from hybrid/kv.rs lines 97-100.
Store an envelope at the given ARID.
Port of KvStore::put() implementation from hybrid/kv.rs lines 109-168.
OptionalttlSeconds: numberOptionalverbose: booleanRetrieve an envelope for the given ARID.
Port of KvStore::get() implementation from hybrid/kv.rs lines 171-230.
OptionaltimeoutSeconds: numberOptionalverbose: booleanCheck if an envelope exists at the given ARID.
Port of KvStore::exists() implementation from hybrid/kv.rs lines 254-257.
Destroy the hybrid store and release resources.
Hybrid storage layer combining Mainline DHT and IPFS.
Automatically optimizes storage based on envelope size:
This provides the best of both worlds:
Port of
struct HybridKvfrom hybrid/kv.rs lines 59-63.Requirements
Example