redis/node-redis

zpopmin doesn't supports count param

Closed this issue · 1 comments

Description

zpopmin doesn't supports count param

Node.js Version

18.17.1

Redis Server Version

7.4.0

Node Redis Version

4.6.13

Platform

ubuntu

Logs

No response

Hi @lucalamo,

You're correct - zPopMin currently doesn't support the count parameter. To maintain backwards compatibility (since zPopMin is typed to return a single object rather than an sorted array), we've introduced a separate command called zPopMinCount that handles multiple removals.