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

Support "touch" command for memcached and allow negative exptime #344

Merged
merged 2 commits into from Apr 8, 2015

Conversation

mckelvin
Copy link
Contributor

@mckelvin mckelvin commented Apr 7, 2015

The PR is similar to Netflix/dynomite#76


The touch command is not supported in twemproxy. I'm not sure if there's any deliberate purpose, if so, please tell me.

Touch with negative exptime is supported by memcached while not well documented. I'm not familiar with its inner implements but I guess the proxy should better transport without any interruption.

 telnet localhost 11211
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
set foo 0 0 2
10
STORED
get foo
VALUE foo 0 2
10
END
touch foo -1
TOUCHED
get foo
END

@manjuraj
Copy link
Collaborator

manjuraj commented Apr 7, 2015

looks good. Could you update this file to include semantic for the touch command: https://github.com/twitter/twemproxy/blob/master/notes/memcache.txt as a part of this commit

@mckelvin
Copy link
Contributor Author

mckelvin commented Apr 8, 2015

@manjuraj Updated.

manjuraj added a commit that referenced this pull request Apr 8, 2015
Support "touch" command for memcached and allow negative exptime
@manjuraj manjuraj merged commit b8a76c0 into twitter:master Apr 8, 2015
@mckelvin mckelvin deleted the touch branch April 9, 2015 02:12
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.

None yet

2 participants