For upcoming versions, both the binary protocol and the proposed
pluggable storage engine interface have an expiration field as part of
incr/decr.

http://code.google.com/p/memcached/wiki/MemcacheBinaryProtocol
http://code.google.com/p/memcached/wiki/EngineInterface

But, client language wrappers will have to be updated to expose incr/
decr expiration.

steve

On Nov 25, 1:16 am, Masaru Yokoi <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I want to update exptime of stored item in memcached to extend
> lifetime of datum when increment value. I read document of protocol
> and source code, I could not find the way to update exptime.
>
> I thought to execute "append" or "prepend" command with exptime
> argument, zero length value. But argument "extime" of append/prepend
> command is not accepted by memcached such as following in
> "protocols.txt".
>
>   The append and prepend commands do not accept flags or exptime.
>   They update existing data portions, and ignore new flag and exptime
>   settings.
>
> If the append/prepend command accept...
>
> I think some way to solve it, I change memcached as following.
>
>  - Extend optional argument "exptime" for "incr".
>  - Add commnad "exptime"
>
> How do I do?

Reply via email to