Skip to content
/ kvx Public

Distributed key/value store abstraction library for Node.js

Notifications You must be signed in to change notification settings

kvxjs/kvx

Repository files navigation

kvx

Distributed key/value store abstraction library for Node.js

NPM version NPM downloads Build Status Coverage Status Dependency Status Greenkeeper badge


Install

$ npm install kvx --save

Usage

import kvx from 'kvx';

const kv = kvx('consul');

async function test() {
  const key = 'hello';
  const value = 'world';

  await kv.put(key, value);
  const pair = await kv.get(key);

  const pairs = await kv.list(key);

  const watcher = kv.watch(key);
  watcher.on('change', (err, data) => {
    console.log(data);
    watcher.end();
  });
}

Report a issue

Reference

License

kvx is available under the terms of the MIT License.

About

Distributed key/value store abstraction library for Node.js

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published