Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Testing If PHP Is Configured To Use Memcached

Testing to see if Memcached is available for php is a two step process. Identify if memcached is enabled and available via phpinfo. Test a php script with the following code: addServer("127.0.0.1", 11211); $result = $mem->get("bleh"); if ($result) { echo $result; } else { echo "No match for key found. Adding that now!"; $mem->set("bleh", "I am the data! I am held in memcached!") or die("Couldn't save anything to memcached..."); } [Click to read the full article »]

The post Testing If PHP Is Configured To Use Memcached has been published by Binary Turf.



This post first appeared on WordPress Genesis Consultant | Shivanand Sharma, please read the originial post: here

Share the post

Testing If PHP Is Configured To Use Memcached

×

Subscribe to Wordpress Genesis Consultant | Shivanand Sharma

Get updates delivered right to your inbox!

Thank you for your subscription

×