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
Silently doesn't work if TTL is over 30 days #251
Comments
More than 30 days and memcached treats the value as a Unix timestamp, so |
Thanks. So I suppose Dalli could still raise or log a warning when you set an expiry that's interpreted as being in the past, but I can see how you wouldn't want to go there. Do you think you might accept a pull request that mentions this in the Dalli README, then? |
I would accept a patch for the #set rdoc. It's not something that belongs On Sun, Aug 12, 2012 at 9:14 AM, Henrik Nyh notifications@github.comwrote:
|
Yeah, realized that just after I sent it. Thanks for your time; will try to get around to that pull request. |
This works:
This fails:
This was confusing to me and took a while to debug. I now know that memcache expiry given in seconds can't be higher than 30 days (I should probably just use 0 = never expire), but perhaps Dalli could raise an exception for expiry times over 30 days to help you catch these mistakes?
If you'd like, I'll make a pull request, but I wanted to check if you want this behavior, first.
The text was updated successfully, but these errors were encountered: