ZPOPMAX

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

大きい値から取り出す

使い方は zpopmax key [count] です。
count のデフォルト値は 1 です。

Example

コマンド>zadd city 50 Tokey 60 Seoul 70 Beijing 80 "New York"
結果>4
コマンド>zpopmax city
結果> 1) "New York"
2) "80"
コマンド>zpopmax city 2
結果> 1) "Beijing"
2) "70"
3) "Seoul"
4) "60"


構文

ZPOPMAX key [count]

  • このコマンドは version 5.0.0 から使用できます。
  • 時間計算量は O(log(N)*M) です。 N は集合の member 個数で、 M は返す member の個数です。

<< ZPOPMIN ZPOPMAX BZPOPMIN >>

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