On Sep 1, 8:34 pm, "Toru Maesaka" <[EMAIL PROTECTED]> wrote:
> Hi!
>
> This is irrelevant to this thread but theres one thing I found weird
> with incr/decr while working on making C::M support the binary
> protocol. With the ASCII protocol, if an item to incr/decr didn't
> exist in the cache beforehand, memcached will return NOT_FOUND.
> However, with the binary protocol, if an item didn't exist it will
> make an initial one for you.
>
> Personally I like what memcached does for incr/decr with the binary
> protocol but wouldn't this become a potential trap for those that are
> used to having NOT_FOUND sent back from memcached?

  It will actually do, uh, both:

          <t>If the expiration value is all one-bits (0xffffffff), the
             operation will fail with NOT_FOUND.</t>

Reply via email to