1. Download the memcached for windows in URL: http://jehiah.cz/projects/memcached-win32/
2. Unzip the binaries in your desired directory (eg. c:/memcached)
3. Install the service using the command: 'c:/memcached/memcached.exe -d install' from either the command line
4. Start the server from the Microsoft Management Console or by running the following command: 'c:/memcached/memcached.exe -d start'
5. Use the server, by default listening to port 11211
6. Download the PHP memcache extension for windows in URL: http://downloads.php.net/pierre/
7. Copy it to PHP extensions directory (eg. c:/PHP/ext)
8. Open php.ini and add 'extension=php_memcache.dll'
9. Restart your web server and check the phpinfo
PS:
Other settings for memcached:
-p <num> TCP port number to listen on (default: 11211)
-U <num> UDP port number to listen on (default: 0, off)
-s <file> unix socket path to listen on (disables network support)
-l <ip_addr> interface to listen on, default is INDRR_ANY
-d start tell memcached to start
-d restart tell running memcached to do a graceful restart
-d stop|shutdown tell running memcached to shutdown
-d install install memcached service
-d uninstall uninstall memcached service
-r maximize core file limit
-u <username> assume identity of <username> (only when run as root)
-m <num> max memory to use for items in megabytes, default is 64
-M return error on memory exhausted (rather than removing i
-c <num> max simultaneous connections, default is 1024
-k lock down all paged memory
-v verbose (print errors/warnings while in event loop)
-vv very verbose (also print client commands/reponses)
-h print this help and exit
-i print memcached and libevent license
-b run a managed instanced (mnemonic: buckets)
-P <file> save PID in <file>, only used with -d option
-f <factor> chunk size growth factor, default 1.25
-n <bytes> minimum space allocated for key+value+flags, default 48