# redis-promisify

> promisify redis commands with util.promisify

Latest version **0.1.2** (published 2018-12-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install redis-promisify
pnpm add redis-promisify
yarn add redis-promisify
bun add redis-promisify
```

## 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.2 |
| Published | 2018-12-13 |
| First published | 2017-06-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 8.0.0 |
| Dependencies | 2 |
| Unpacked size | 2.5 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 6 |
| Author | zenxds |
| Maintainers | zenxds |
| Keywords | redis, promise, promisify |

## Links

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

## Dependencies (2)

- [redis](https://npm.io/package/redis.md) ^2.8.0
- [redis-commands](https://npm.io/package/redis-commands.md) ^1.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

- 0.1.2 (latest) — 2018-12-13
- 0.1.1 — 2018-03-02
- 0.1.0 — 2017-06-12

## README

# redis-promisify

promisify redis commands with util.promisify

redis-promisify will add promisified method(client[command + 'Async'], such as client.setAsync) for client and multi

## install

```
npm i redis-promisify --save
```

## Usage

```
const redis = require('redis-promisify')
const client = redis.createClient({
  host: '127.0.0.1',
  port: 6379,
  db: 0
})

client.setAsync("string key", "string val").then((reply) => {
  console.log(reply)
})
client.multi().get('string key').execAsync().then((replies) => {
  console.log(replies)
})
```

## commands

client commands: [redis-commands](https://www.npmjs.com/package/redis-commands)

multi commands: ['execAtomicAsync', 'execAsync']

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