zrevrank
ZREVRANK
|  Redis Developer Course |  Redis Technical Support |  Redis Enterprise Server | 
|---|
member를 역순으로 index(rank)를 리턴
사용법은 zrevrank key member 이다.
score(member)가 큰 순으로 0부터 index가 매겨진다.
Example
| 명령> | zrevrange city 0 -1 withscores | 
| 결과> | 0) 80 -> New York 1) 70 -> Beijing 2) 60 -> Seoul 3) 50 -> New Delhi | 
| 명령> | zrevrank city "New York" | 
| 결과> | 0 | 
| 명령> | zrevrank city "Seoul" | 
| 결과> | 2 | 
명령문
ZREVRANK key member
- 이 명령은 version 2.0.0 부터 사용할 수 있다.
- 논리적 처리 소요시간은 O(log(N)+M)이다.
| 관련 명령 | ZREVRANGE, LRANGE | 
| Clients for Java | Jedis, Lettuce, Redisson | Clients for C | Hiredis | 
| << ZRANK | ZREVRANK | ZSCORE >> | 
|---|
	Email
	
	
	답글이 올라오면 이메일로 알려드리겠습니다.
	
 


 
  
			 
			