From b5ff444f914a2a6257a81037aeb9d1adff24dcfb Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Tue, 15 Oct 2013 13:39:56 +0300 Subject: [PATCH] readme: Update ZRangeByScore example. --- v2/README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/v2/README.md b/v2/README.md index 2f51e3b3..9eb65ce2 100644 --- a/v2/README.md +++ b/v2/README.md @@ -189,7 +189,12 @@ Some corner cases: client.Sort("list", redis.Sort{Offset: 0, Count: 2, Order: "ASC"}) ZRANGEBYSCORE zset -inf +inf WITHSCORES LIMIT 0 2 - client.ZRangeByScoreWithScores("zset", "-inf", "+inf", 0, 2) + client.ZRangeByScoreWithScores("zset", redis.ZRangeByScore{ + Min: "-inf", + Max: "+inf", + Offset: 0, + Count: 2, + }) ZINTERSTORE out 2 zset1 zset2 WEIGHTS 2 3 AGGREGATE SUM client.ZInterStore("out", redis.ZStore{Weights: []int64{2, 3}}, "zset1", "zset2")