Skip to content

KristianWahlroos/orbit-db-cache

 
 

Repository files navigation

orbit-db-cache

Gitter 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

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

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

About

Local cache for orbit-db

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%