Skip to content

Add minimalist DHT API for scripting #165

@gavin-norman-sociomantic

Description

Currently, initialising and using a DHT client involves a lot of boilerplate, making it unsuitable for use in quick D scripts.

The ideal would be for things like this to work:

void main ( )
{
  Dht.connect("dht.nodes");
  Dht.update!(S)(key,
    ( ref S deserialized_record )
    {
      // changes made to deserialized_record will be written back to the DHT
    }
  );
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions