How to install Memcache for xampp

Read Time:1 Minute, 5 Second

Original Article:


Go to your xampp install directory ->apache/bin, there you should have php.ini file
find this line:

and replace it with:

now download memcached-1.2.6.tar.gz from here


Now you have to install memcache as a standalone service:

a)Unzip and copy the binaries to your desired directory (eg. c:\memcached) [you should see: memcached.exe and msvcr71.dll]
b)Install the service using the command: c:\memcached\memcached.exe -d install from the command line
c)Start the server from the Microsoft Management Console or by running one of the following commands: c:\memcached\memcached.exe -d start, or net start “memcached Server”

3.Now you have to test it to see if everything’s allright:


echo “Server’s version: ” . $memcache->getVersion() . ”

$tmp_object = new stdClass;
$tmp_object->str_attr = “test”;
$tmp_object->int_attr = 123;

echo “Store data in the cache (data will expire in 10 seconds)

echo “Data from the cache:

thats all

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.