3.0.ipv8.dht.storage
Classes
Module Contents
- class 3.0.ipv8.dht.storage.Value(id_: bytes, data: bytes, max_age: float, version: int)
Class for storing DHT values.
- id
- data
- last_update
- max_age
- version
- class 3.0.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.