1.1.1 • Published 8 years ago

dht-store v1.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

node-dht-store

Build Status Coverage Status npm version Downloads

A key/value store based on DHT.

Features

  • use custom keys differ from BEP 44
  • support ttl

Install

$ npm install dht-store

Example

var Store = require('dht-store');

var store = new Store();
store.on('ready', function() {
    store.kvPut('key', 'test', function(err, key, n) {
        if (err) {
            console.log('err:', err);
            store.destroy();
            return;
        }

        store.kvGet('key', function(err, n, v) {
            console.log('value:', v);
            store.destroy();
        });
    });
});

More examples can be found in the folder examples.

Build from source

$ make init
$ make build

Test

$ make test
1.1.1

8 years ago

1.1.0

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago