npm

Join us for the upcoming webinar, "Enterprise JavaScript done right: the tools you love, the security you need."Sign up here »

@dashevo/dapi-db-cache

0.2.6 • Public • Published

orbit-db-cache

Isomorphic cache used by orbit-db, implemented using level.js (indexedDB) for the browser and leveldown (leveldb) for node.

Used in

API

Public methods

open

Open cache store and make it available to be used (indexedDB or leveldb)

close

Close cache store and the underlying indexedDB / leveldb instance

destroy

Completely remove an existing store and deletes the locally persisted cache

get

Get an item from the cache store

set

Set a value for a given key on the cache store

del

Remove a given key-value from the cache store

Contributing

See orbit-db's contributing guideline.

License

MIT © 2017-2018 Protocol Labs Inc., Haja Networks Oy, 2018 Dash Core Group, Inc.

Keywords

none

install

npm i @dashevo/dapi-db-cache

Downloadsweekly downloads

3

version

0.2.6

license

MIT

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability