readme: Update ZRangeByScore example.

This commit is contained in:
Vladimir Mihailenco 2013-10-15 13:39:56 +03:00
parent 8fd6b4ad9f
commit b5ff444f91
1 changed files with 6 additions and 1 deletions

View File

@ -189,7 +189,12 @@ Some corner cases:
client.Sort("list", redis.Sort{Offset: 0, Count: 2, Order: "ASC"}) client.Sort("list", redis.Sort{Offset: 0, Count: 2, Order: "ASC"})
ZRANGEBYSCORE zset -inf +inf WITHSCORES LIMIT 0 2 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 ZINTERSTORE out 2 zset1 zset2 WEIGHTS 2 3 AGGREGATE SUM
client.ZInterStore("out", redis.ZStore{Weights: []int64{2, 3}}, "zset1", "zset2") client.ZInterStore("out", redis.ZStore{Weights: []int64{2, 3}}, "zset1", "zset2")