-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add support for resp3 protocol #1739
Conversation
Signed-off-by: monkey <golang@88.com>
redis#1715 (comment) Signed-off-by: monkey <golang@88.com>
Signed-off-by: monkey <golang@88.com>
Signed-off-by: monkey <golang@88.com>
Signed-off-by: monkey <golang@88.com>
It looks like the code always uses https://redis.io/commands/hello to switch to RESP3. And
Which is fine - I just want to confirm my understanding. |
Signed-off-by: monkey <golang@88.com>
If conn.HELLO(ctx, 3) fails to execute (redis<6.0), there will be no error, and it will continue to use RESP2 to execute commands. In redis5 or lower version, it can work normally. |
Awesome, thanks. |
Subscribe __redis__:invalidate
, it only works in RESP2 mode(redis6.0+).$EOF:<40 bytes marker><CR><LF>
and*?<CR><LF>
that have not been enabled by redis-server have not been implemented for the time being, they will be followed up in the future.