stipsan / ioredis-mock

Emulates ioredis by performing all operations in-memory.
MIT License
336 stars 124 forks source link

feat: refactor zrange #1267

Closed marcoreni closed 1 year ago

marcoreni commented 1 year ago

Starting with 6.2.0, Redis has deprecated ZREVRANGE, Z[REV]RANGEBYSCORE and Z[REV]RANGEBYLEX and added all of their params into ZRANGE.

This PR inherits Redis' new ZRange parsing function so that ZRANGE supports all the new parameters and so that all the "child" functions use the same algorithm.

In subsequent PRs I'm planning on adding support for Z[REV]RANGEBYLEX and, hopefully, ZRANGESTORE

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 8.5.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: