Sorted Set
ZPOPMIN
Removes and returns up to count members with the lowest scores in the sorted set stored at key.
const popped = await redis.zpopmin("key", 4);
Arguments
key
string
requiredThe key of the sorted set
Response
The number of elements removed. Defaults to 1.
const popped = await redis.zpopmin("key", 4);