kad.py
kad.py copied to clipboard
Deletion
Hello,
It's not an issue only two simple questions about things which are not in the documentation.
It's possible to delete a key/value from the DHT ? Is there an expiration time by default for the key/value ?
Thank you.
Deletion is not possible at the moment; to delete a key-value pair in a DHT solutions are two:
- create an authentication protocol and allows deletion by the owner of the key-value
- remove the pair in all nodes, but it is a decision of each node
Expiration time: it's not implemented any expiration rule
If you want to implement it, new features are welcome on this repo ;)