ZSCORE

Redis 開発者教育の申込 Redis 定期点検/技術サポート
Redis Technical Support
Redis エンタープライズサーバー
Redis Enterprise Server

member の score を返す

使い方は zscore key member です。 戻り値は score です。

Example

コマンド>zrange city 0 -1 withscores
結果> 0) 50 -> New Delhi
1) 60 -> Seoul
2) 70 -> Beijing
3) 80 -> New York
コマンド>zscore city "Seoul"
結果>60
コマンド>zscore city "New York"
結果>80

アニメーションを見る



構文

ZSCORE key member

  • このコマンドは version 1.2.0 から使用できます。
  • 時間計算量は O(1) です。
関連コマンド ZRANGEBYSCORE, ZREVRANGEBYSCORE, ZREMRANGEBYSCORE
Clients for Java Jedis, Lettuce, Redisson
Clients for C Hiredis

<< ZREVRANK ZSCORE ZMSCORE >>

Email 返事がかかってなれば、メールでお知らせします。