keev-leveldb
v0.1.0
Published
A LevelDB backed keev store.
Downloads
2
Readme
keev-leveldb
A LevelDB backed keev store.
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