1.0.2 • Published 11 months ago
minikv v1.0.2
minikv
- a stupid KV store
- max size is 1874160
- slightly faster than {} for short-key AND small value
and the key-length MUST <= 4 , and can only be [a-z_][0-9]
install
- npm install minikv
usage
const x = require("minikv");
var store = x();
store.set(k,v);
store.get(k);
example
using_minikv set 1874161 AND then get 1874161: { rounds: 1, f: [Function: using_minikv], costed: 279.1363561153412 }
1874160
using {} set 1874161 AND then get 1874161: { rounds: 1, f: [Function: using_object], costed: 474.51481795310974 }
1874160 1184394
METHODS
APIS
LICENSE
- ISC