[appengine-java] Funny behavior with memcache.increment() below zero

2010-04-06 Thread Nacho Coloma
Hi all, I am trying to use memcache.increment to move to negative values, starting at 0. According to the javadoc[1]: To facilitate use as an atomic countdown, incrementing by a negative value (i.e. decrementing) will not go below zero: incrementing 2 by -5 will return 0, not -3. However, due to

Re: [appengine-java] Funny behavior with memcache.increment() below zero

2010-04-06 Thread Ikai L (Google)
I'm looking at the standard memcached documentation: http://github.com/memcached/memcached/blob/master/doc/protocol.txt http://github.com/memcached/memcached/blob/master/doc/protocol.txtNote that underflow in the decr command is caught: if a client tries to decrease the value below 0, the new