Skip to content

Commit

Permalink
Merge pull request redis#1332 from gonenduk/master
Browse files Browse the repository at this point in the history
Simpler bluebird promisifyAll usage
  • Loading branch information
Salakar authored May 22, 2018
2 parents fe1e525 + 59db10d commit 95b17a1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ You can also use node_redis with promises by promisifying node_redis with

```js
const redis = require('redis');
bluebird.promisifyAll(redis.RedisClient.prototype);
bluebird.promisifyAll(redis.Multi.prototype);
bluebird.promisifyAll(redis);
```

It'll add a *Async* to all node_redis functions (e.g. return client.getAsync().then())
Expand Down

0 comments on commit 95b17a1

Please sign in to comment.