Hi Henrik,

Thank for your reply ^^.
But I create memcache queue base on memcached. And the counter could
not be Set if available.
I will create new func like Add for counter.

Thank for your help.

Kha

On Aug 8, 3:28 am, Henrik Schröder <[email protected]> wrote:
> Hi Kha,
>
> As others have pointed out, incr and decr only work on correctly formatted
> data, i.e. any unsigned 64-bit integer. The reason it stopped working when
> you updated the server is that they apparently finally made it throw an
> error when the data was wrong. I should probably fix the client to give back
> a more meaningful error now. :-)
>
> However as long as you use the BeITMemcached client, there are some
> convenience methods called SetCounter and GetCounter that you can use to set
> and get ulong values that are then stored in the correct format for
> Increment and Decrement.
>
> /Henrik
>
> On Fri, Aug 7, 2009 at 18:49, Kha Nguyen <[email protected]> wrote:
>
> > Hi all,
>
> > I just update memcached 1.2.8 to 1.4.0 and I have a problem at func
> > Incr and Decr.
> > Server say : Server returned CLIENT_ERROR cannot increment or
> > decrement non-numeric value
>
> > I use func Get this value of key is zero.
>
> > I use CentOS 5.3 , libevent1.4.12 , and memcached client is
> > BeITMemcached (C# .Net 2.0)http://code.google.com/p/beitmemcached/
>
> > Before that, I use version 1.2.8 all things is ok.
>
> > Any one help me please.
>
> > Thanks,
>
> > P/S:My english is verry bad

Reply via email to