# cachinggg

> Module per persistent cache control, key/value store only for one key

Latest version **0.0.2** (published 2017-03-07) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2017-03-07 |
| First published | 2017-03-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | 6.0.0 |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Paolo Manca |
| Maintainers | piemme |
| Keywords | caching, key/value store |

## Links

- npm: https://www.npmjs.com/package/cachinggg
- Repository: https://github.com/piemme/cachinggg
- Homepage: https://github.com/piemme/cachinggg#readme
- Issues: https://github.com/piemme/cachinggg/issues
- npm.io page: https://npm.io/package/cachinggg

## Dependencies (3)

- [debug](https://npm.io/package/debug.md) ^2.6.1
- [crypto](https://npm.io/package/crypto.md) 0.0.3
- [node-persist](https://npm.io/package/node-persist.md) ^2.0.8

## Recent versions

- 0.0.2 (latest) — 2017-03-07
- 0.0.1 — 2017-03-07

## README

# Cachinggg

Module for simple key/value store, with just one key. It'a wrapper around node-persist, in sync mode.

## Install

```
npm install @piemme/cachinggg --save
```

<a name="api"></a>
## API

  * <a href="#put"><code><b>put()</b></code></a>
  * <a href="#get"><code><b>get()</b></code></a>
  * <a href="#refresh"><code><b>refresh()</b></code></a>
  * <a href="#clear"><code><b>clear()</b></code></a>
  * <a href="#disable"><code><b>disable</b></code></a>

-------------------------------------------------------

<a name="put"></a>
put(someStuff)

<a name="get"></a>
get()

<a name="refresh"></a>
refresh(someStuff)

<a name="clear"></a>
answer(clear)

<a name="disable"></a>
disable

Example:

```js
var cachinggg = require ('cachinggg')
cachinggg.put('beep')
var content = cachinggg.get()
// obtain 'beep'

// and now refresh cache with a new content
// cache system verify if value is the same in cache
cachinggg.refresh(someContent, function () {
  var content = cachinggg.get()
})
```

## License

MIT

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