Hey Tommy,

On Wed, 14 Oct 2009 12:49:23 +0200
Tommy van Leeuwen <chipa...@gmail.com> wrote:

> 
> Hello,
> 
> I've been trying to debug something for a while. I have an app written
> in c using libmemcached.
> 
> First i increment a key, if it returns not found, i set the key to a
> value of one. Next up i want to decrease the value of the previously
> stored key, but it returns not found, while the key is successfully
> stored.
> 
> I've been verifying this using tcpdump but can't see anything wrong with it.
> 
> First there's the increment: (key="tommy32200.conns")
> 0x0030:  889a 52af 696e 6372 2074 6f6d 6d79 3332  ..R.incr.tommy32
> 0x0040:  3230 302e 636f 6e6e 7320 310d 0a         200.conns.1..
> 
> Which returns not found (as expected):
> 0x0030:  1d79 18ea 4e4f 545f 464f 554e 440d 0a    .y..NOT_FOUND..
> 
> So i set the key to a value of "1"
> 0x0030:  889a 52af 7365 7420 746f 6d6d 7933 3232  ..R.set.tommy322
> 0x0040:  3030 2e63 6f6e 6e73 2030 2031 3235 3536  00.conns.0.12556
> 0x0050:  3837 3239 3220 310d 0a31 0d0a            87292.1..1..

Looks like you have an expire time set on here.  Are you sure that the object 
is not getting expired before the decrement call?

Thanks,
Jake

Reply via email to