# low_js_cache

> Using npm: `npm install low_js_cache` Using yarn: `yarn add low_js_cache`

Latest version **1.0.1** (published 2023-05-04) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2023-05-04 |
| First published | 2023-05-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=18.0.0 |
| Dependencies | 0 |
| Unpacked size | 5.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Emmanuel |
| Maintainers | admirableyetti |
| Keywords | cache |

## Links

- npm: https://www.npmjs.com/package/low_js_cache
- Repository: https://github.com/echb/low_cache
- Homepage: https://github.com/echb/low_cache#readme
- Issues: https://github.com/echb/low_cache/issues
- npm.io page: https://npm.io/package/low_js_cache

## 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.1 (latest) — 2023-05-04
- 1.0.0 — 2023-05-04

## README

# Installing

Using npm:
`npm install low_js_cache`
Using yarn:
`yarn add low_js_cache`

Once the package is installed, you can import the library using import or require approach:

`import { LCache } from 'low_cache';`

`const { low_cache } = require('low_cache');`


# Methods/Properties

| Methods/Properties |
| ----------- |
| keys |
| values |
| size |
| cache |
| get |
| add |
| delete |
| clear |


# Example
```js
import { LCache } from 'low_cache';

const lCache = new LCache()

lCache.add({ key: 'item', value: 9 })
lCache.add({ key: '0', value: 978162 })
lCache.add({ key: '1', value: { "0": [1] } })
console.log(lCache.get("1"));
console.log(lCache.exist({ key: "1" }));
console.log(lCache.exist({ key: "5", value: 081 }));
console.log(lCache.exist({ key: "1", value: 3 }));

console.log(lCache.cache)
console.log(lCache.keys)
console.log(lCache.values)
console.log(lCache.size)

lCache.delete('item')
console.log(lCache.cache)
lCache.delete('0')
console.log(lCache.cache)
lCache.clear()
console.log(lCache.cache)
```

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