zscore

ZSCORE

ZSCORE key member

Returns the score of member in the sorted set at key.

If member does not exist in the sorted set, or key does not exist, nil is returned.

Return value

Bulk string reply: the score of member (a double precision floating point number), represented as string.

Examples

redis> ZADD myzset 1 "one" (integer) 1 redis> ZSCORE myzset "one" "1"

© 2009–2017 Salvatore Sanfilippo
Licensed under the Creative Commons Attribution-ShareAlike License 4.0.
https://redis.io/commands/zscore

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部