Mzcount
Bun

method

RedisClient.zcount

key: KeyLike,
min: string | number,
max: string | number
): Promise<number>;

Count the members in a sorted set with scores within the given range

@param key

The sorted set key

@param min

Minimum score (inclusive, use "-inf" for negative infinity)

@param max

Maximum score (inclusive, use "+inf" for positive infinity)

@returns

Promise that resolves with the count of elements in the specified score range

Referenced types

type KeyLike = string | ArrayBufferView | Blob