append, prepend, cas

dormando dormando at
Fri Nov 16 10:29:57 UTC 2007

Dustin Sallings wrote:
> On Nov 15, 2007, at 10:34 , Brian Aker wrote:
>> My thought was use expiration and flags if the item is new (aka the
>> action creates an object). Otherwise toss the values (or better yet,
>> just make them optional to send).
>     That's effectively what bin-incr will do (except for the optional
> part).
>     To further the magic of the 0 expiration, a negative expiration
> forbids the server from creating a new entry as a side-effect of the
> mutation command.

Sits better with me.

Changed in r643. Since length is the last argument, there's no good way
to make the parameters optional. We could definitely add more command
options with the binary protocol though...

If anyone cares about this change, please whine soon :)


More information about the memcached mailing list