# memcached-promisify-timestamp

> Memcached promisified wrapper library with timestamp support

Latest version **1.0.2** (published 2017-07-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install memcached-promisify-timestamp
pnpm add memcached-promisify-timestamp
yarn add memcached-promisify-timestamp
bun add memcached-promisify-timestamp
```

## 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.0.2 |
| Published | 2017-07-24 |
| First published | 2017-07-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Chris Wood |
| Maintainers | chantal |
| Keywords | memcached, promises |

## Links

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

## Dependencies (4)

- [memcached](https://npm.io/package/memcached.md) ^2.2.2
- [lodash.get](https://npm.io/package/lodash.get.md) ^4.4.2
- [lodash.assign](https://npm.io/package/lodash.assign.md) ^4.2.0
- [lodash.isempty](https://npm.io/package/lodash.isempty.md) ^4.4.0

## 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.2 (latest) — 2017-07-24
- 1.0.1 — 2017-07-24
- 1.0.0 — 2017-07-24

## README

# memcached-promisify-timestamp

Fork of [memcached-promisify](https://github.com/flightstats/memcached-promisify)

Memcached promisified wrapper library

## installation

```shell
npm install memcached-promisify-timestamp --save
```

## usage
```shell
const Cache = require('memcached-promisify-timestamp');

const cache = new Cache();

cache.set('foo', 'bar', 20)
    .then((result) => {
        // successful set...
    }, (err) => {
        // something happened...
    });
```

## options

The following can be passed when instantiating:

* an object with a cache key prefix and the cache host URL, both optional
* memcached options (see https://www.npmjs.com/package/memcached#options)

```shell
const Cache = require('memcached-promisify');

// uses cache host at localhost:11211 by default
const cache1 = new Cache({ 'keyPrefix': 'prefix' });

// specific cache host
const cache2 = new Cache({ 'keyPrefix': 'prefix', 'cacheHost': 'other.host.com' });
```

## tests

Run the tests
```shell
grunt test
```

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