-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Xrange - impossible to provide count argument #3081
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello @fliespl thank you for reporting this. Do you recall which version of redis and |
@ndyakov according to go.mod it was. Can't remember redis version though. github.com/redis/go-redis/v9 v9.6.1 h1:HHDteefn6ZkTtY5fGUE8tj8uy85AHk6zP7CpzIAM0y4= |
@andy-stark-redis can we add doctests with the said usage for xrange if we don't have already and verify it they do work with the current version? |
@fliespl @ndyakov I might be misunderstanding the issue here, but aren't you supposed to use the |
If I remember correctly, it was this case: @andy-stark-redis
|
@fliespl Found it - the Go tab for that example has this code, using res15, err := rdb.XRangeN(ctx, "race:france",
"(1692632094485-0", "+", 2,
).Result()
if err != nil {
panic(err)
}
fmt.Println(res15) It's a testable example and the tests pass, so presumably the code is OK. |
Possibility to provide "+ count 1" as stop argument or stop as "+" and option count 1
Current Behavior
ERR Invalid stream ID specified as stream command argument
Also, it's impossible to execute as described in xrange documention:
XRANGE writers (1526985685298-0 + COUNT 2
The text was updated successfully, but these errors were encountered: