@tradle/offline-keeper

offline storage node

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
10Feb 1, 2016Sep 30, 2015Minified + gzip package size for @tradle/offline-keeper in KB

Readme

offline-keeper

NPM

Usage

See tests, the API is very basic

putOne(String, Buffer)

Returns a Q.Promise that resolves when the value is written to disk

getOne(String)

Returns a Q.Promise that resolves to a Buffer

removeOne(String)

Returns a Q.Promise that resolves when the corresponding value is erased from the disk

getMany([String, ...])

Returns a Q.Promise that resolves to an array with values (Buffer) and/or nulls, depending on if values exist on disk or not

clear

Deletes all stored values

close

Finish pending writes and die

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.