const popped = await redis.zpopmax("key", 4);

Arguments

key
string
required
The key of the sorted set

Response

The number of elements removed. Defaults to 1.
const popped = await redis.zpopmax("key", 4);