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
XTrimArgs asserts the maximum numbers of entries to trim is > 0. Calling limit(0) results in exception thrown "Limit must be greater 0"
XTrimArgs
> 0
Limit must be greater 0 java.lang.IllegalArgumentException: at io.lettuce.core.internal.LettuceAssert.isTrue(LettuceAssert.java:208) at io.lettuce.core.XTrimArgs.limit(XTrimArgs.java:114)
var args = XTrimArgs.Builder.minId(minId).approximateTrimming().limit(0l); return commands.xtrim(streamKey, args);
Specifying the value 0 as count disables the limiting mechanism entirely.
redis.io/commands/xtrim/
An explicit limit of 0 means unlimited (but note that it's not the default).
redis/redis#8169
LettuceAssert.isTrue(limit >= 0, "Limit must be greater or equal to 0");
The text was updated successfully, but these errors were encountered:
Allow zero maxlen/limit using XTRIM #2250
490756f
1ca86f4
That's fixed now.
Sorry, something went wrong.
No branches or pull requests
Bug Report
Current Behavior
XTrimArgs
asserts the maximum numbers of entries to trim is> 0
. Calling limit(0) results in exception thrown "Limit must be greater 0"Stack trace
Input Code
Input Java Code
Expected behavior/code
redis.io/commands/xtrim/
redis/redis#8169
Environment
Possible Solution
The text was updated successfully, but these errors were encountered: