# memcached-q

> A wrapper for the npm "memcached" package which converts the asynchronous methods to a promise-based API, using npm "q" package's promise implementation.

Latest version **0.1.0** (published 2015-11-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install memcached-q
pnpm add memcached-q
yarn add memcached-q
bun add memcached-q
```

## 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.1.0 |
| Published | 2015-11-30 |
| First published | 2015-11-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Aaron Moore |
| Maintainers | blendersfun |
| Keywords | memcached, promise |

## Links

- npm: https://www.npmjs.com/package/memcached-q
- Repository: https://github.com/Vertafore/memcached-q
- Homepage: https://github.com/Vertafore/memcached-q#readme
- Issues: https://github.com/Vertafore/memcached-q/issues
- npm.io page: https://npm.io/package/memcached-q

## Dependencies (2)

- [q](https://npm.io/package/q.md) ^1.4.1
- [memcached](https://npm.io/package/memcached.md) ^2.2.1

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

- 0.1.0 (latest) — 2015-11-30

## README

# memcached-q

A wrapper for the npm "memcached" package which converts the asynchronous methods to a promise-based API, using npm "q" package's promise implementation.

## Installation

```shell
npm install memcached-q --save
```

## Usage
```shell
var MemcacheQ = require('memcached-q');

var cache = new MemcacheQ(serverLocations, options);

cache.set('foo', 'bar', 20)
    .catch(e => console.log('An error occurred: ', e));

// Later on:

cache.get('foo')
    .then(val => {
        if (val) {
            return val;
        } else {
            return expensiveFetchWithPromiseAPI();
        }
    })
    .then(val => {
        // Do something with result.
    });
```

## API Reference:

See the [memcached API docs](https://github.com/3rd-Eden/memcached) for more details. The API is identical except where node-style async functions are concerned.

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