# memchync

> An async/await wrapper package for memcached.

Latest version **1.1.0** (published 2018-04-18) · MIT license · 0 weekly downloads

## Install

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

## 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.1.0 |
| Published | 2018-04-18 |
| First published | 2018-04-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | jp6rt |
| Maintainers | jp6rt |
| Keywords | memcached, async, sebas |

## Links

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

## Dependencies (1)

- [memcached](https://npm.io/package/memcached.md) ^2.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.0 (latest) — 2018-04-18
- 1.0.10 — 2018-04-18
- 1.0.9 — 2018-04-18
- 1.0.8 — 2018-04-18
- 1.0.7 — 2018-04-18
- 1.0.6 — 2018-04-18
- 1.0.5 — 2018-04-18
- 1.0.4 — 2018-04-18
- 1.0.3 — 2018-04-17
- 1.0.2 — 2018-04-16
- 1.0.1 — 2018-04-16
- 1.0.0 — 2018-04-16

## README

# memchync
An async/await wrapper package for memcached.

## installation
```
npm i memchync --save
```

## api

```javascript
const memchync= require('./memchync')

//  initialize memcached
/**
 * @param Server locations
 * @param options
 */
memchync.init('127.0.0.1:11211', {
	maxValue: 65536
})

// memcached instance
memchync.memcached
```

### Public methods

Supports all memcached public methods. If an error has occurred, it will return the error object otherwise it will return the data or (int)1 if no data that needs to be returned.

```javascript
;(async function() {
 // returns 0 if success else error object
 const foo = await memchync.add('foo', 'bar', 60)
 // returns 'bar' else error object
 const bar = await memchync.get('foo')
})()
```

### License

MIT

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