You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ioredis-mock does not have a _queue but appears to use this.batch to track its queued commands. https://github.com/stipsan/ioredis-mock/blob/master/src/pipeline.js#L8
It would be nice to map this.batch.length to Pipeline.length or Pipeline._queue.length so that implementations of ioredis that rely on tracking the size of the queue can be mocked appropriately.
The text was updated successfully, but these errors were encountered:
ioredis exposes the number of commands in the pipeline queue via
Pipeline.length
which is a proxy forPipeline._queue.length
https://github.com/luin/ioredis/blob/master/lib/pipeline.ts#L57
ioredis-mock does not have a
_queue
but appears to usethis.batch
to track its queued commands.https://github.com/stipsan/ioredis-mock/blob/master/src/pipeline.js#L8
It would be nice to map
this.batch.length
toPipeline.length
orPipeline._queue.length
so that implementations of ioredis that rely on tracking the size of the queue can be mocked appropriately.The text was updated successfully, but these errors were encountered: