However, this does not work for redis-mock: Cannot read property Multi of undefined.
It would be ideal if this could be supported. I am planning to try and make a PR for this at some point soonish, but if anyone else has run into this issue and knows a way around it, it would be appreciated.
var redis = require('redis-mock');
var bluebird = require('bluebird');
bluebird.promisifyAll(redis.RedisClient.prototype);
bluebird.promisifyAll(redis.Multi.prototype);
The
node_redis
documentation recommends promisifying like so:However, this does not work for
redis-mock
:Cannot read property Multi of undefined
.It would be ideal if this could be supported. I am planning to try and make a PR for this at some point soonish, but if anyone else has run into this issue and knows a way around it, it would be appreciated.