zscore
ZSCORE
Apply for Redis Developer Course
|
Redis Regular Inspection / Technical Support
|
Redis Enterprise Server
|
|---|
Return the score of a member
Usage: zscore key member. The return value is score.
Example
| Command> | zrange city 0 -1 withscores |
| Result> |
0) 50 -> New Delhi 1) 60 -> Seoul 2) 70 -> Beijing 3) 80 -> New York |
| Command> | zscore city "Seoul" |
| Result> | 60 |
| Command> | zscore city "New York" |
| Result> | 80 |
Syntax
ZSCORE key member
- Available since version 1.2.0.
- Time complexity is O(1).
| Related commands | ZRANGEBYSCORE, ZREVRANGEBYSCORE, ZREMRANGEBYSCORE |
| Clients for Java | Jedis, Lettuce, Redisson | Clients for C | Hiredis |
| << ZREVRANK | ZSCORE | ZMSCORE >> |
|---|
Email
답글이 올라오면 이메일로 알려드리겠습니다.
