openresty / memc-nginx-module

An extended version of the standard memcached module that supports set, add, delete, and many more memcached commands.
http://wiki.nginx.org/NginxHttpMemcModule
213 stars 56 forks source link

Support touch command #12

Open jaderhs opened 11 years ago

jaderhs commented 11 years ago

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

touch [noreply]\r\n

Would be an interesting feature.

agentzh commented 11 years ago

This support is implemented in the lua-resty-memcached library:

https://github.com/agentzh/lua-resty-memcached

You can use it for now.

I don't mind adding support for "touch" to ngx_memc but I don't have the time to implement it myself. Patches welcome :)