Windows version of Memcached

Tormod Hystad thy at
Sun Sep 30 10:07:29 UTC 2007

Sure you can, no problem at all, just install the memcached service on
as many machines as you want and modify the service on each machine as I
described below (memory to use, port to listen on and so on, see
"memcached.exe -h").


Then access the servers from your code with the client of your choice.
>From windows "client" machines we've used a java client
( and the Enyim C#
( client with no problems and
good performance against the Win32 memcached, 



- Tormod




From: Peter Chiu [mailto:peterchiu at] 
Sent: 30. september 2007 12:03
To: Tormod Hystad; memcached
Subject: RE: Windows version of Memcached


Thanks Tormod. I apologize for the confusion. He's what I meant:


The documentation at says, "First, you
start up the memcached daemon on as many spare machines as you have." I
was just wondering if I can do the same in the Windows environment so as
to provide load-balanced, distributed caching..





From: Tormod Hystad [mailto:thy at] 
Sent: Sunday, September 30, 2007 5:48 PM
To: Peter Chiu; memcached
Subject: RE: Windows version of Memcached


I'm not exactly sure I understand your question, but if you mean
installing several memcached Win32 services on a single box on different
ports, I've not actually tried that, but I did figure out how to change
the port, memory and other settings for a service install, hope this
gets you in the right direction. :-)

To install as a service run "memcached.exe -d install", documented at or see "memcached.exe -h" for


Then change the registry settings for the memcached service, in
HKEY_Local_Machine/System/CurrentControlSet/Services/ memcached Server.
Change the ImagePath key to something like:

"C:\servers\memcached-1.2.1-win32\memcached.exe" -d runservice -p 11911
-l 192.168.xx.yyy -m 1024


And restart the service.

Those are my values, you should use your own preferred path, ports,
memory  and ip-addresses, of course.




- Tormod




From: memcached-bounces at
[mailto:memcached-bounces at] On Behalf Of Peter Chiu
Sent: 29. september 2007 20:53
To: Robert Brewer; memcached
Subject: RE: Windows version of Memcached


Great thanks!


I couldn't find any instructions for setting up the Windows version with
multiple memcached servers. Could you please kindly share any pointers
or info?





From: Robert Brewer [mailto:fumanchu at] 
Sent: Sunday, September 30, 2007 1:49 AM
To: Peter Chiu; memcached
Subject: RE: Windows version of Memcached


Peter Chiu wrote:
> I am running Windows version of Memcached. I read somewhere that
> ePoll/LibEvent will speed things up in Linux. Do I need them for
> Windows?
> Or is everything I need included in "memcached 1.2.1 for Win32
> binaries (Dec 23, 2006)" from the following link?

That binary worked for me. No other software needed.

Robert Brewer
fumanchu at 

-------------- next part --------------
An HTML attachment was scrubbed...

More information about the memcached mailing list