Skip to content
This repository has been archived by the owner on Sep 30, 2023. It is now read-only.

orbitdb-archive/orbit-db-cache

Repository files navigation

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