# cachenator

> Store data in key value with configurable expiry time.

Latest version **1.0.0** (published 2020-03-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install cachenator
pnpm add cachenator
yarn add cachenator
bun add cachenator
```

## 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.0.0 |
| Published | 2020-03-18 |
| First published | 2020-03-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Christopher Ribeiro |
| Maintainers | christopy |
| Keywords | cachenator, key value, dictionary, cache, in memory, database |

## Links

- npm: https://www.npmjs.com/package/cachenator
- npm.io page: https://npm.io/package/cachenator

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

- 1.0.0 (latest) — 2020-03-18

## README

# Cachenator
Store data in key value with configurable expiry time.

## Install

```
$ npm install cachenator
```

## Usage

```js
import Cachenator from 'cachenator';

const store = new Cachenator('animals');

store.set('dog', 🐶); // Default is one day
store.get('dog');
//=> 🐶

// Wait for 1 day...
store.get('dog');
//=> null


store.set('cat', 🐱, 1000);
store.get('cat');
//=> 🐱

// Wait for 1 second...
store.get('cat');
//=> null


```


## License

MIT © [Christopher Ribeiro](https://github.com/ChristoPy)

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