-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Redis not setting a key for a large ttl number #6800
Comments
@sullyvannunes this is caused by TTL is represented by |
hi there @patpatbear if we specify the expire time in milliseconds this will never happen due to the overflow guard on
The issue here is that we dont check for overflow when we internally convert from seconds to milliseconds. #6801 fixes it. |
@filipecosta90 @sullyvannunes , oops , i missed the range check. |
got it! Thanks @filipecosta90 @patpatbear |
why would someone want to expire a key in 317097919 years? |
fixed by #8287 |
I am learning about TTL and trying some examples. But when I set a specific large number the key is not created (or at least it is deleted so fast) like below.
It is worth to point out a larger and a fewer number works fine.
I am using macOS Mojave 10.14.6 and Redis-cli version: 5.0.7
Could someone help me to understand this behavior?
The text was updated successfully, but these errors were encountered: