latest.ipv8.dht.storage
Module Contents
Classes
Class for storing DHT values. |
|
Class for storing key-value pairs in memory. |
- class latest.ipv8.dht.storage.Value(id_: bytes, data: bytes, max_age: float, version: int)
Class for storing DHT values.
- class latest.ipv8.dht.storage.Storage
Class for storing key-value pairs in memory.
- put(key: bytes, data: bytes, id_: bytes | None = None, max_age: float = 86400, version: int = 0) None
Store the given data under a certain key.
- get(key: bytes, starting_point: int = 0, limit: int | None = None) list[bytes]
Get the values stored at the given key.