Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 191 by romanenko.oleg: Implementation of CHECK command for
memcached
http://code.google.com/p/memcached/issues/detail?id=191
Hello.
I've been using memcached for storing data with a short lifetime and I
found that the use of the "add" command to test the existence of a key
requires additional expenses, because if the key does not exist already
(expired) - it will be recreated.
I have implemented a new command "check", which allows you to verify the
existence of a key. This command also allows you to set a new expiration
time for a key.
Use: check <key> [exptime] [noreply]
Binary protocol is also supported.
I have attached three patches. Patch for memcached, which implements a new
command. A patch for the documentation. And a patch for tests.
I also publish my patch through a git:
memcached forked repo: https://github.com/Slader/memcached
and link to commit with patch:
https://github.com/Slader/memcached/commit/b0f5d95e2704c6d8dc9b63519646d58db2dda4f2
Attachments:
memcached-check.patch 11.0 KB
memcached-check-doc.patch 6.9 KB
memcached-check-tests-1.4.5.patch 7.0 KB
memcached-check-tests-trunk.patch 7.0 KB