promisify-redis
Native promises for redis.
Features
- Native promises
- Supports
multi
andbatch
- Doesn't mutate the library
Usage
Wrap the library:
const promisifyRedis = ;const redis = ; const client = redis; { await client; return client;}
Or wrap just a single client
const promisifyRedis = ;const redis = ; const client = ;
Multi
.exec()
will return a promise:
await client ;
Duplicate
.duplicate()
only supports the synchronous version of the original library. It is still synchronous and will return a promisified client.