1.0.4 • Published 8 years ago

eva-localdb v1.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

eva-localDB

Install

npm install eva-localdb

Example

var simpleList = require('eva-localdb').simpleList;
var list = new simpleList('./path');

var i = 0;
var testData;

list.add("name", {test: "Hai"});
console.time("dbsave");
while (i < 1000) {
    testData = test.get("name");
    i++;
}
console.timeEnd("dbsave");

Functions - Simple List

list.add

Add data to the list

list.add(label, data);

list.get

Get data from the list with label

list.get(label);

list.del

Delete data from the list with label

list.del(label);

list.setLength

Set the recent data storage length

list.setLength(number);
1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago