We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
CommandArgs
Long.MIN_VALUE
0
use lettuce incrby command: incrby key Long.MIN_VALUE, the result is 0, not Long.MIN_VALUE
command: incrby key Long.MIN_VALUE
excepted value: Long.MIN_VALUE
actual value: 0
io.lettuce.core.RedisCommandBuilder incrby method would add count to CommandArgs then go IntegerArgument.of() method
and for this place, -Long.MIN_VALUE == Long.MIN_VALUE, so the result is true
finally this place would make the count as 0
so the command: incrby key Long.MIN_VALUE result is 0
The text was updated successfully, but these errors were encountered:
Fix cache lookup for negative long values #2019
c47dd5f
We now correctly check the cache bounds for negative integer arguments.
b034541
That's fixed now.
Sorry, something went wrong.
No branches or pull requests
Bug Report
Current Behavior
use lettuce incrby command: incrby key Long.MIN_VALUE, the result is 0, not Long.MIN_VALUE
command: incrby key Long.MIN_VALUE
excepted value: Long.MIN_VALUE
actual value: 0
Environment
Possible Solution
io.lettuce.core.RedisCommandBuilder incrby method would add count to CommandArgs
then go IntegerArgument.of() method
and for this place, -Long.MIN_VALUE == Long.MIN_VALUE, so the result is true
finally this place would make the count as 0
so the command: incrby key Long.MIN_VALUE result is 0
Additional context
The text was updated successfully, but these errors were encountered: