npm ioredis-mock 3.3.0
v3.3.0

latest releases: 8.9.0, 7.5.1, 8.8.3...
7 years ago

Added

Added support for passing Map and Object to hmset

This is a stopgap solution until real argument and reply transformers is implemented and fully compatible with ioredis

ZADD command (#321 @ddunkin)

redis.zadd('myzset', '1', 'one', '1', 'uno',  '2', 'two', '3', 'three') // returns `4` as 4 items got added

ZRANGE command (#321 @ddunkin)

redis.zrange('myzset', 0, -1) // ['one', 'uno', 'two', 'three']

ZREVRANGE command (#321 @ddunkin)

redis.zrevrange('myzset', 0, -1) // ['three', 'two', 'uno', 'one']

ZREMRANGEBYRANK command (#321 @ddunkin)

redis.zremrangebyrank('myzset', 0, 2) // returns '3' as that’s how many items got deleted
redis.zrange('myzset', 0, -1) // ['three']

Don't miss a new ioredis-mock release

NewReleases is sending notifications on new releases.