# orbit-db-cache

> Local cache for orbit-db

Latest version **0.5.0** (published 2023-01-18) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install orbit-db-cache
pnpm add orbit-db-cache
yarn add orbit-db-cache
bun add orbit-db-cache
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.5.0 |
| Published | 2023-01-18 |
| First published | 2017-02-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 185 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | Haad |
| Maintainers | haad, shamb0t, hajamark |
| Keywords | orbit, orbitdb, cache |

## Links

- npm: https://www.npmjs.com/package/orbit-db-cache
- Repository: https://github.com/orbitdb/orbit-db-cache
- Issues: https://github.com/orbitdb/orbit-db-cache/issues
- npm.io page: https://npm.io/package/orbit-db-cache

## Dependencies (1)

- [logplease](https://npm.io/package/logplease.md) ~1.2.15

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 0.5.0 (latest) — 2023-01-18
- 0.5.1-0bddc0b.0 (next) — 2023-01-18
- 0.4.2-d33a64d.0 — 2023-01-17
- 0.4.2-00265e7.0 — 2023-01-09
- 0.4.2-aad0783.0 — 2023-01-08
- 0.4.2-ae2ac54.0 — 2023-01-08
- 0.4.2-500acc8.0 — 2022-08-22
- 0.4.1 — 2022-08-22
- 0.4.2-716c1b4.0 — 2022-08-22
- 0.4.1-f17d7a5.0 — 2022-08-22
- 0.4.1-9aff0a4.0 — 2022-08-22
- 0.4.1-22f2cc1.0 — 2022-08-22
- 0.4.1-a84eb19.0 — 2022-08-22
- 0.4.0 — 2021-05-28
- 0.3.0 — 2019-10-03
- … 20 more at https://npm.io/package/orbit-db-cache/versions

## README

# orbit-db-cache

[![Gitter](https://img.shields.io/gitter/room/nwjs/nw.js.svg)](https://gitter.im/orbitdb/Lobby) [![Matrix](https://img.shields.io/badge/matrix-%23orbitdb%3Apermaweb.io-blue.svg)](https://riot.permaweb.io/#/room/#orbitdb:permaweb.io)  [![npm version](https://badge.fury.io/js/orbit-db-cache.svg)](https://www.npmjs.com/package/orbit-db-cache) [![node](https://img.shields.io/node/v/orbit-db-cache.svg)](https://www.npmjs.com/package/orbit-db-cache)

> 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](https://github.com/orbitdb/orbit-db).

## Install

This project uses [npm](https://npmjs.com) and [nodejs](https://nodejs.org)

```sh
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](https://github.com/orbitdb/orbit-db-cache/issues/new)!

Please note that all interactions in @orbitdb fall under our [Code of Conduct](CODE_OF_CONDUCT.md).

## License

[MIT](LICENSE) © 2017-2018 Protocol Labs Inc., Haja Networks Oy

---
_Source: https://npm.io/package/orbit-db-cache · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
