0.1.0 • Published 9 years ago

keev-leveldb v0.1.0

Weekly downloads
1
License
BSD-3-Clause
Repository
github
Last release
9 years ago

keev-leveldb

A LevelDB backed keev store.

build status

Installation

This module is installed via npm:

$ npm install keev-leveldb

Example Usage

var stdout = require('stdout');
var leveldb = require('level');

var db = require('keev')({
  store: require('..')(leveldb('/tmp/keev-demo'))
});

db.pipe(stdout()); // Just spit it to the console

db.write({ a: 10 }); // Store a=10
db.write({ a: null }); // Query for the value of a
db.write({ a: "foo" }); // Store a="foo"
db.write({ a: undefined }); // Delete a from store
db.write({ a: null }); // Succeeds in not returning the key a