I am using the following for redis client in go https://github.com/go-redis/redis I have a problem in the below shown code snippet.
vals, err = this.Cli.ZRevRangeByScore(sortedSet, redis.ZRangeBy{
Min: strconv.Itoa(int(query.Since.Unix())),
Max: "+inf",
Offset: 0,
Count: int64(query.maxEvents),
}).Result()
Whenever my query.maxEvents is 0, instead of empty set(expected), I am getting whole set as a response(unexpected). Why is this happening ?