Re: could not set in a memcache server

2010-05-20 Thread elijaa
If it helps, after having typed "set foo 0 0 3" in telnet you must type a 3 bytes length value and push enter again set > set foo 0 900 2 > 10 STORED Your stat dump show that you have items in this server, seem weird Selon Jumping : > Versions: > > memcached 1.4.2 > libevent-1.4.12-stable >

Re: could not set in a memcache server

2010-05-20 Thread Jumping
elijaa, Thanks. I could set value from telnet as you said. But my scripts did not add key & values to this server. Could you give me any clues? Best Regards, Jumping Qu -- On Thu, May 20, 2010 at 3:45 PM, wrote: > If it helps, after having typed "set foo 0 0 3" in telnet > you must type

Please review my sample code

2010-05-20 Thread ram
Hello all, With help from this group I managed to write this code. I want to use this in a patch in production , so I dont want to end up doing something daft. ( I havent any experience with memcached ) --- The basic idea is , If key exists in memcahce increment value.. else create key with value

Re: Sample C code for beginner

2010-05-20 Thread ram
Hello all I wrote a sample code. http://pastebin.com/jvq4T2UD Can you please review it for me ( I had made another post .. dont know why that has not appeared here. Sorry if this is duplicated ) Thanks Ram On May 20, 12:05 am, Brian Aker wrote: > Hi! > > I would suggest to look at tests/me

Re: invoking a set without specifying a timeout

2010-05-20 Thread Boris Partensky
< wrote: > Is it possible that some requests to memcached remain in a blocking > state since there is no timeout specified? > > I see in the API a reference to global operation timeout. I wonder > what that is. > > -hd > > On May 19, 2:56 pm, Boris Partensky wrote: > > Sorry, just re-read the que

Memcache is throwing strange error

2010-05-20 Thread Jay
Hi everyone, When trying memcache:get, I'll get the following error message back: I run a Windows 32bit test environment (XP) and here's how my code looks: function getMulti(array $keys) { $items = $this->memcache->get($keys); return $items; } My memcache servers are two local com

Re: Memcache is throwing strange error

2010-05-20 Thread Henrik Schröder
You forgot to paste in the actual error message, that makes it pretty hard to guess what's going wrong. /Henrik On Thu, May 20, 2010 at 12:40, Jay wrote: > Hi everyone, > > When trying memcache:get, I'll get the following error message back: > > I run a Windows 32bit test environment (XP) and

Re: Sample C code for beginner

2010-05-20 Thread Dustin
You wrote too much code. Libmemcached has a (documentation?) bug that prevents you from using incement with initial unless you're using the binary protocol. If you switch to binary, it'll just work and you can get rid of your race condition around initialization (you will overwrite the value i

Re: Memcache is throwing strange error

2010-05-20 Thread Jay
Sorry for that. Here's the error: Message: Memcache::get() [memcache.get]: Server localhost (tcp 11211) failed with: Failed reading line from stream (0) On 20 Maj, 12:40, Jay wrote: > Hi everyone, > > When trying memcache:get, I'll get the following error message back: > > I run a Windows 32bi

Re: Memcached as web page cache

2010-05-20 Thread Sun-N-Fun
Yes, the writeup makes it look very robust. Developed at Yahoo 2002-2009 then given to open source. On May 19, 11:55 am, Les Mikesell wrote: > On 5/19/2010 1:46 PM, Sun-N-Fun wrote: > > > Apache Traffic Server looks good!  Has commands for deleting a > > specific object from the cache. > > I had