npm.io
0.5.0 • Published 3 years ago

orbit-db-cache

Licence
MIT
Version
0.5.0
Deps
1
Size
185 kB
Vulns
0
Weekly
0
Stars
11
DeprecatedThis package is deprecated

orbit-db-cache

Gitter Matrix npm version node

Local cache for orbit-db

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

This project is used in: orbit-db.

Install

This project uses npm and nodejs

npm install --save orbit-db-cache

API

Public methods
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

If you think this could be better, please open an issue!

Please note that all interactions in @orbitdb fall under our Code of Conduct.

License

MIT 2017-2018 Protocol Labs Inc., Haja Networks Oy

Keywords