Mzpopmax
Bun

method

RedisClient.zpopmax

key: KeyLike
): Promise<null | string>;

Remove and return members with the highest scores in a sorted set

@param key

The sorted set key

@returns

Promise that resolves with the removed member and its score, or null if the set is empty

Referenced types

type KeyLike = string | ArrayBufferView | Blob