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

aliyun redis set error #1797

Closed
dafa168 opened this issue Jun 25, 2021 · 4 comments
Closed

aliyun redis set error #1797

dafa168 opened this issue Jun 25, 2021 · 4 comments

Comments

@dafa168
Copy link

dafa168 commented Jun 25, 2021

Detailed Description

code:
image

image

阿里云redis
set zxc "test" keepttl
(error) ERR syntax error

@monkey92t
Copy link
Collaborator

Need redis-server >= 6.0 (#1774)
Please confirm the version of aliyun redis service.

@monkey92t
Copy link
Collaborator

If you have a new discovery, you can reopen the issue.

@dafa168
Copy link
Author

dafa168 commented Jun 25, 2021

yes got ! aliyun redis version is 5.x

@monkey92t
Copy link
Collaborator

monkey92t commented Jun 25, 2021

It is a limitation of redis-server, not go-redis (https://redis.io/commands/set).
I will add a comment to Set() later to mark the usage instructions for KeepTTL.

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

No branches or pull requests

2 participants