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

go-redis/v7 PTTL if reply is -1 or -2, cmd val is time.Duration(n), will get -1/-2 * time.Nanosecond #90

Closed
rexeee opened this issue Apr 3, 2020 · 3 comments
Labels

Comments

@rexeee
Copy link

rexeee commented Apr 3, 2020

if ttl == (-1 * time.Millisecond) {

@thoas
Copy link
Member

thoas commented Apr 3, 2020

@renpu-mcarlo could you add a proper description about the context of your issue? Thank you.

@rexeee
Copy link
Author

rexeee commented Apr 3, 2020

@renpu-mcarlo could you add a proper description about the context of your issue? Thank you.

redis/store.go use go-redis/redis/v7,the PTTL function in go-redis/redis/v7 will return -1 * time.Nanosecond if result is -1

@novln
Copy link
Contributor

novln commented Apr 3, 2020

I'll investigate because there is no mention of that in the changelog.

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

No branches or pull requests

3 participants