# cache-blister-dependencies

> Uses a configuration to cache all the specified services in a container

Latest version **1.1.1** (published 2019-05-23) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install cache-blister-dependencies
pnpm add cache-blister-dependencies
yarn add cache-blister-dependencies
bun add cache-blister-dependencies
```

## 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 | 1.1.1 |
| Published | 2019-05-23 |
| First published | 2016-11-14 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 11.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Rubén Norte |
| Maintainers | softonic |

## Links

- npm: https://www.npmjs.com/package/cache-blister-dependencies
- Repository: https://github.com/softonic/cache-blister-dependencies
- Issues: https://github.com/softonic/cache-blister-dependencies/issues
- npm.io page: https://npm.io/package/cache-blister-dependencies

## Dependencies (1)

- [make-cacheable](https://npm.io/package/make-cacheable.md) ^2.0.2

## Recent versions

- 1.1.1 (latest) — 2019-05-23
- 1.1.0 — 2018-12-05
- 1.0.0 — 2016-11-14

## README

# cache-blister-dependencies

Uses a configuration to cache all the specified services in a container.

## Installation

```bash
npm install cache-blister-dependencies
```

## Usage

```javascript
import cacheBlisterDependencies from 'cache-blister-dependencies';

container.service('articleRepository', () => { return new ArticleRepository(); });
container.value('getSomethingExpensive', getSomethingExpensive);

const config = {
  options: {
    ttl: '4h'
  },
  entries: {
    'articleRepository.getArticle': { ttl: '1h' },
    'getSomethingExpensive': { ttl: '2d' }
  }
};

const cacheClient = container.get('cacheClient');

cacheBlisterDependencies({ container, cacheClient, config });
```

## Testing

Clone the repository and execute:

```bash
npm test
```

## Contribute

1. Fork it: `git clone https://github.com/softonic/cache-blister-dependencies.git`
2. Create your feature branch: `git checkout -b feature/my-new-feature`
3. Commit your changes: `git commit -am 'Added some feature'`
4. Check the build: `npm run build`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

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