0.0.10 • Published 5 years ago

@nlibs/kvlite v0.0.10

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

kvlite

kvlite is an in-memory key value store with an sqlite backend.

Installation

npm install kvlite

API

kvlite has 3 call

  • constructor(path: string, oncomplete)
  • get(key: string, oncomplete(value: string)=>void);
  • set(key: string, value: string);

Example

var KVLITE = require("kvlite");
var db = new KVLITE.kv("path");
db.set("key", "value");
db.get("key", function(value)
{
	if (typeof value == 'undefined')
	{
		//  key not found
	}
});
0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago