# @brightleaf/cache

> [![npm version](https://badge.fury.io/js/%40brightleaf%2Fcache.svg)](https://badge.fury.io/js/%40brightleaf%2Fcache)

Latest version **2.0.0** (published 2020-03-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install @brightleaf/cache
pnpm add @brightleaf/cache
yarn add @brightleaf/cache
bun add @brightleaf/cache
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2020-03-29 |
| First published | 2019-04-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Kevin Isom |
| Maintainers | kev_nz |
| Keywords | async, await, utils, redis, cache, asynchronous, async tools, promises, helpers |

## Links

- npm: https://www.npmjs.com/package/@brightleaf/cache
- Repository: https://github.com/brightleaf/cache
- Homepage: https://brightleaf.github.io/cache
- Issues: https://github.com/brightleaf/cache/issues
- npm.io page: https://npm.io/package/@brightleaf/cache

## Dependencies (2)

- [ioredis](https://npm.io/package/ioredis.md) ^4.16.1
- [@kev_nz/async-tools](https://npm.io/package/@kev_nz/async-tools.md) ^1.2.3

## 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

- 2.0.0 (latest) — 2020-03-29
- 1.0.3 — 2019-05-05
- 1.0.2 — 2019-05-05
- 1.0.1 — 2019-05-05
- 1.0.0 — 2019-04-28

## README

# Cache

[![npm version](https://badge.fury.io/js/%40brightleaf%2Fcache.svg)](https://badge.fury.io/js/%40brightleaf%2Fcache)

Redis cache module.

```javascript
const Cache = require('@brightleaf/cache')
const cache = new Cache()

;(async () => {
  const results = await expensiveCall()
  cache.set('results', results)

  const fromCache = await cache.get('results')
})()
```

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