# ilp-store-wrapper

> > Synchronous wrapper around ILP store

Latest version **2.0.0** (published 2018-07-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install ilp-store-wrapper
pnpm add ilp-store-wrapper
yarn add ilp-store-wrapper
bun add ilp-store-wrapper
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2018-07-13 |
| First published | 2018-01-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | sharafian |

## Links

- npm: https://www.npmjs.com/package/ilp-store-wrapper
- npm.io page: https://npm.io/package/ilp-store-wrapper

## Recent versions

- 2.0.0 (latest) — 2018-07-13
- 1.0.0 — 2018-01-27

## README

# ILP Store Wrapper
> Synchronous wrapper around ILP store

The constructor takes an ILP store.

```js
const wrappedStore = new StoreWrapper(store)
```

- `.load(key) -> Promise<null>` will read a key asynchronously into the cache.
- `.get(key) -> value` will synchronously read from the cache.
- `.set(key, value) -> null` will synchronously write to the cache and queue a write to the store (with order guaranteed).
- `.delete(key) -> null` will synchronously delete from the cache and queue a delete to the store (with order guaranteed).
- `.setCache(key, value) -> null` will synchronously write to the cache and NOT queue any write to the store.

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