-
Notifications
You must be signed in to change notification settings - Fork 137
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
Handling of Negative Timeouts different than python-memcached. #24
Comments
Hm, what is the point in keys that expire immediately? This, I feel, should rather raise an exception and be noted in the documentation. (also can't you just |
Lack of input, so duly noted in documentation. |
(bump) It seems due to a change in memcache or libmemcache (I'm not sure which?), pylibmc is now behaving with the odd behavior of having negative timeouts auto-delete (set and immediately forget) keys. Should the docs be updated again, or an error be raised? |
Possible related changeset: http://blog.elijaa.org/index.php?post/2011/08/17/Memcached-1.4.7-Released |
Not really sure what you're rooting for here. Do you want an exception to be raised? |
I think removing the doc note is good enough -- as bizarre of a functionality as having negative timeouts delete a key is, it's at least consistent across all interactions with memcache -- through libmemcached or not. |
This is now covered more in depth in #202 , closing. |
pylibmc currently treats negative timeout as long-lasting (assuming Default behavior of "Never"/0), while python-memcached has them expire immediately.
This should be modified to match python-memcached or have the difference noted in the documentation (currently giving me a bear of a trouble getting tests to pass adding pylibmc support into django 1.3 :))
The text was updated successfully, but these errors were encountered: