ソート済みセット型¶ Redisソート済みセット型はRedisセット型とよく似ていて、Redis文字列型の集合となっています。違いはソート済みセットのすべてのメンバはスコアに関連したハッシュ値を持っています。元となっているスコアを用いてメンバを順番に並べます。 Redisソート済みセットに新しいメンバを追加するには要素のスコアを指定して ZADD コマンドを用います。すでにソート済みセット内に存在するメンバに対して異なるスコアを用いて ZADD を呼ぶと、順番が正しくなるようにその要素を正しい場所に移動させます。 Redisソート済みセットからある範囲の要素を取得することが可能です。これはRedisリストの LRANGE と同様に ZRANGE コマンドを用います。 またあるスコアの範囲で要素を取得または削除することも可能で、それには ZRANGEBYSCORE や ZREMRANGEBY
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く