Determine the index of a member in a sorted set
method
RedisClient.zrank
@param key
The sorted set key
@param member
The member to find
@returns
Promise that resolves with the rank (index) of the member, or null if the member doesn't exist
member: string,
withscore: 'WITHSCORE'
): Promise<null | [number, number]>;
Determine the index of a member in a sorted set with score
@param key
The sorted set key
@param member
The member to find
@param withscore
"WITHSCORE" to include the score
@returns
Promise that resolves with [rank, score] or null if the member doesn't exist
Referenced types
type KeyLike = string | ArrayBufferView | Blob