Skip to content
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 the Protocol attribute to the Redis configuration #3109

Merged
merged 1 commit into from Oct 30, 2023
Merged

Add the Protocol attribute to the Redis configuration #3109

merged 1 commit into from Oct 30, 2023

Conversation

tianxing113
Copy link
Contributor

The go-redis v9 has added support for RESP3 and communicates with the redis server using RESP3 by default. However, many cloud server manufacturers’ redis cloud services do not yet support RESP3. Therefore, when using the v9 client to connect to a redis server that does not support RESP3, some redis commands may fail to process the return value from the server, such as ‘zset range’. In order to be compatible with the RESP2 protocol, it is necessary to add configuration for the RESP version.

@roufutuan
Copy link

这个PR大概什么时候能进版本?我们项目也遇到了这个问题,腾讯云的全线redis产品都只支持RESP2

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


When will this PR be available for release? Our project also encountered this problem. Tencent Cloud's full line of redis products only support RESP2.

@houseme houseme requested review from gqcn and hailaz October 30, 2023 04:17
@gqcn gqcn merged commit ab5ab4c into gogf:master Oct 30, 2023
20 checks passed
@gqcn
Copy link
Member

gqcn commented Oct 30, 2023

@tianxing113 Awesome! Thanks for your contribution!

@gqcn
Copy link
Member

gqcn commented Oct 30, 2023

这个PR大概什么时候能进版本?我们项目也遇到了这个问题,腾讯云的全线redis产品都只支持RESP2

It now merged into branch master, and will be release in next version. You can use go get -u github.com/gogf/gf/v2@master if you're urgent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants