# @amnesia-js/express-cache

> All you need to cache Express request-response

Latest version **1.1.1** (published 2021-09-17) · AGPL-3.0-or-later license · 0 weekly downloads

## Install

```sh
npm install @amnesia-js/express-cache
pnpm add @amnesia-js/express-cache
yarn add @amnesia-js/express-cache
bun add @amnesia-js/express-cache
```

## 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 | 1.1.1 |
| Published | 2021-09-17 |
| First published | 2021-09-15 |
| Weekly downloads | 0 |
| License | AGPL-3.0-or-later |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 58.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Nikhil Nayak |
| Maintainers | nikhilcodes |
| Keywords | cache-api, express-cache, amnesia-js |

## Links

- npm: https://www.npmjs.com/package/@amnesia-js/express-cache
- npm.io page: https://npm.io/package/@amnesia-js/express-cache

## Dependencies (2)

- [express](https://npm.io/package/express.md) ^4.17.1
- [@amnesia-js/core](https://npm.io/package/@amnesia-js/core.md) 1.2.2

## 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.1.1 (latest) — 2021-09-17
- 1.1.0 — 2021-09-17
- 1.0.4 — 2021-09-17
- 1.0.3 — 2021-09-17
- 1.0.2 — 2021-09-17
- 1.0.1 — 2021-09-16
- 1.0.0 — 2021-09-15

## README

# @amnesia-js/express-cache
**Short Description**: A library to help express suffer from Amnesia.

**Long Description**: This library provides middleware to help express cache responses using [AmnesiaDB](https://github.com/NikhilCodes/AmnesiaDB)

Example:
```javascript
import { CacheMiddlewareFactory } from '@amnesia-js/express-cache';

let acm = new CacheMiddlewareFactory();
acm.connect({ port: 4224 }) // Connecting to default port and host

app.use(acm.getMiddleware({ nfetch: 2 }));  // Attaching middleware
```

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