I have enabled the memcache extension for my PHP Apache localserver server (XAMPP)
but I don't know how to use it to speed up my PHP scripts Is writing the following code in the top of every page I want to speed up is enough? or I should do something else?
/* procedural API */
$memcache_obj = memcache_connect('127.0.0.1', 11211);
/* OO API */
$memcache = new Memcache;
$memcache->connect('127.0.0.1', 11211);
the phpinfo() shows the following details
memcache support enabled
Active persistent connections 0
Version 2.2.4-dev
Revision $Revision: 1.99 $
Thanks