zmscore
ZMSCORE
Apply for Redis Developer Course
|
Redis Regular Inspection / Technical Support
|
Redis Enterprise Server
|
|---|
Return scores of members - multiple members allowed
Usage: zmscore key member1 member2.
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> | zmscore city Seoul Beijing "New York" |
| Result> |
1) "60" 2) "70" 3) "80" |
Syntax
ZMSCORE key member [member ...]
- Available since version 6.2.0.
- Time complexity is O(N).
| Related commands | ZSCORE |
| << ZSCORE | ZMSCORE | ZREM >> |
|---|
Email
답글이 올라오면 이메일로 알려드리겠습니다.
