offline-keeper

1.6.1 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.6.1
    3
    • latest

Version History

Package Sidebar

Install

npm i offline-keeper

Weekly Downloads

3

Version

1.6.1

License

ISC

Last publish

Collaborators

  • spwilko
  • genevayngrib
  • pgmemk
  • tenaciousmv