-
Notifications
You must be signed in to change notification settings - Fork 357
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
XINFO GROUPS will crash #287
Comments
XINFO returns an array reply which can be expressed as an array of map. However the value part of the map might be string or integer. If you are using C++17, you can use
You can check this for detail. However, if you are using an older c++ standard, you have to define Or, you can make it return a
Regards |
thx~ 😆 |
@sewenew These two keys are certain to be present in returns, but their values might be
This is the document for XINFO GROUPS. Regards |
If the value of
You can try the above code, and if you still get problem, feel free to let me know. Regards |
thx again ~ |
Unable to parse XINFO
XINFO method is not supported yet, and some difficulties have been encountered in parsing it for me.
I got: terminate called after throwing an instance of 'sw::redis::ProtoError'
what(): Expect ARRAY reply
I got: terminate called after throwing an instance of 'sw::redis::ProtoError'
what(): Expect STRING reply
And
Expect STRING reply
means that the type indicated inredis.command<>
is expected astring
instead of the correct return is expected to bestring
?Environment:
By the way
Is there a better way to judge whether a group/consumer exists?
Regards
The text was updated successfully, but these errors were encountered: