# @ioki/node-ts-cache-storage-memory

> Memory storage module for node-ts-cache

Latest version **8.0.1** (published 2022-10-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @ioki/node-ts-cache-storage-memory
pnpm add @ioki/node-ts-cache-storage-memory
yarn add @ioki/node-ts-cache-storage-memory
bun add @ioki/node-ts-cache-storage-memory
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 8.0.1 |
| Published | 2022-10-13 |
| First published | 2022-10-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | ans82, jonasstr, chb-ioki |
| Keywords | node, nodejs, cache, typescript, ts, caching, memcache, memory-cache, redis-cache, redis, cache, file-cache, node-cache, ts-cache |

## Links

- npm: https://www.npmjs.com/package/@ioki/node-ts-cache-storage-memory
- Repository: https://github.com/ioki-mobility/node-ts-cache
- Homepage: https://github.com/ioki-mobility/node-ts-cache#readme
- Issues: https://github.com/ioki-mobility/node-ts-cache/issues
- npm.io page: https://npm.io/package/@ioki/node-ts-cache-storage-memory

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

- 8.0.1 (latest) — 2022-10-13
- 8.0.0 — 2022-10-07

## README

# node-ts-cache-storage-memory

In-Memory storage module for [node-ts-cache](https://www.npmjs.com/package/@ioki/node-ts-cache).

```bash
yarn add @ioki/node-ts-cache
yarn add @ioki/node-ts-cache-storage-memory
```

```ts
import { Cache, CacheContainer } from "@ioki/node-ts-cache"
import { MemoryStorage } from "@ioki/node-ts-cache-storage-memory"

const userCache = new CacheContainer(new MemoryStorage())

class MyService {
    @Cache(userCache, { ttl: 60 })
    public async getUsers(): Promise<string[]> {
        return ["Max", "User"]
    }
}
```

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