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

Touch isn't supported in text protocol #47

Open
bigbes opened this issue Oct 13, 2018 · 0 comments
Open

Touch isn't supported in text protocol #47

bigbes opened this issue Oct 13, 2018 · 0 comments
Labels
feature A new functionality

Comments

@bigbes
Copy link
Contributor

bigbes commented Oct 13, 2018

Touch

The "touch" command is used to update the expiration time of an existing item
without fetching it.

touch [noreply]\r\n

  • is the key of the item the client wishes the server to touch

  • is expiration time. Works the same as with the update commands
    (set/add/etc). This replaces the existing expiration time. If an existing
    item were to expire in 10 seconds, but then was touched with an
    expiration time of "20", the item would then expire in 20 seconds.

  • "noreply" optional parameter instructs the server to not send the
    reply. See the note in Storage commands regarding malformed
    requests.

The response line to this command can be one of:

  • "TOUCHED\r\n" to indicate success

  • "NOT_FOUND\r\n" to indicate that the item with this key was not
    found.

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

@Totktonada Totktonada added feature A new functionality and removed enhancement labels Feb 2, 2022
@Totktonada Totktonada added this to the wishlist milestone Feb 2, 2022
@LeonidVas LeonidVas added the teamE label Dec 5, 2022
@LeonidVas LeonidVas removed this from the wishlist milestone Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new functionality
Projects
None yet
Development

No branches or pull requests

4 participants