Skip to content

tradle/offline-keeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

very basic promise-based key-value store

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published