0.0.10 • Published 3 years ago

@nlibs/kvlite v0.0.10

Weekly downloads
1
License
MIT
Repository
-
Last release
3 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

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago