ioredis-mock
ioredis-mock copied to clipboard
Multi() command returns undefined in results array
When using the multi()
command the exec
callback gets called with (err, results) as parameters. In this implementation the results are always null, instead they should be a matrix of the pipeline results.
Example:
.multi()
.setnx(redisKey, true)
.expire(redisKey, 60)
.exec(async (err, results) => {// results undefined!})