Jdesk / memcached

Automatically exported from code.google.com/p/memcached
0 stars 0 forks source link

method for extending the expiration of an item is needed #110

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
There are current use cases where an application may "touch" an item by
either getting it or updating it, and there is not currently a way to
extend the expiration time.  

The server should add a new operation, touch (and perhaps a CAS
equivalent), which allows a client to "touch" an item with a new expiration
time, following the existing expiration rules.

Following the existing ascii protocol:
touch <key> <new exptime> [noreply] \r\n

Original issue reported on code.google.com by ingen...@gmail.com on 1 Dec 2009 at 8:08

GoogleCodeExporter commented 9 years ago
There should be a response indicating if the key is actually existing. This is 
useful
for the corner case that memcached was restarted so that the item is not there.

Original comment by martin.grotzke on 21 Feb 2010 at 11:47

GoogleCodeExporter commented 9 years ago
The response for such a command must indicate the results.  noreply violates 
anything 
related to good protocol processing, but otherwise, the results should make 
sense.

Original comment by dsalli...@gmail.com on 21 Feb 2010 at 11:56

GoogleCodeExporter commented 9 years ago
This is done for 1.6.

Original comment by dsalli...@gmail.com on 13 Jul 2011 at 12:38