ZRANGESTORE

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

照会して別のキーに保存

照会して別のキーに保存します。
照会方法は ZRANGE と同じです。
このコマンドは version 6.2 から使用できます。

Example

コマンド>zadd mycity 10 Seoul 20 Busan 30 Daegu 40 Incheon 50 Gwangju 60 Gyeonggi
結果>6
コマンド>zrangestore mycity2 mycity 0 -1
結果> 1) "Seoul"
2) "Busan"
3) "Daegu"
4) "Incheon"
5) "Gwangju"
6) "Gyeonggi"
コマンド>zrange mycity2 0 -1
結果> 1) "Seoul"
2) "Busan"
3) "Daegu"
4) "Incheon"
5) "Gwangju"
6) "Gyeonggi"


構文

ZRANGESTORE dst src min max [ BYSCORE | BYLEX] [REV] [LIMIT offset count]

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

<< ZRANGE ZRANGESTORE ZLS >>

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