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

Separated touch and delete #30

Closed
wants to merge 1 commit into from
Closed

Conversation

erankor
Copy link
Contributor

@erankor erankor commented Feb 16, 2014

Apparently, the delete command does not really support a time parameter
even though the code had support for it -
https://github.com/memcached/memcached/blob/master/doc/protocol.txt#L254
Also, found that the expiry parameter is mandatory in touch -
https://github.com/memcached/memcached/blob/master/doc/protocol.txt#L324.
For these reasons, it makes more sense to use separate functions.

(Note - easier to review this change comparing to the version before my previous pull request -
erankor/python-memcached@794b028...e0ba0fc)

Apparently, the delete command does not really support a time parameter
even though the code had support for it -
https://github.com/memcached/memcached/blob/master/doc/protocol.txt#L254
Also, found that the expiry parameter is mandatory in touch -
https://github.com/memcached/memcached/blob/master/doc/protocol.txt#L324.
For these reasons, it makes more sense to use separate functions.
@andyxning
Copy link

just to mention that the function of flush_all should support an optional delay time according to the memcached protocol. I will make a pull request later, i think.

linsomniac added a commit that referenced this pull request Apr 16, 2023
Port of erankor's PR #30 to the latest code.  In that PR, the "time"
argument to delete() is removed because it is not supported by the
protocol:

https://github.com/memcached/memcached/blob/master/doc/protocol.txt#L330

And touch requires the expiry parameter due to protocol:

https://github.com/memcached/memcached/blob/master/doc/protocol.txt#L399
@linsomniac
Copy link
Owner

Thank you for the PR, I have updated it to match the new code and included it.

@linsomniac linsomniac closed this Apr 16, 2023
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

Successfully merging this pull request may close these issues.

3 participants