I am new in php Memcached. I am trying to implement memcached for my application handling thousand of request. But while initialize Memcached class on scripts as follow:
<?php
error_reporting(E_ALL & ~E_NOTICE);
$mc = new Memcached();
Then I am getting following error:
Fatal error: Class 'Memcached' not found in C:\xampp\htdocs\mamecache.php on line 4
I am new on this technologies, why I am getting this please let know?
Probably you haven't installed memcached on your pc that's why you are getting error.
Please check following post:
You need to install memcached for php first.
try sudo apt-get install mysql-server php5-mysql php5 php5-memcached memcached
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-memcache-on-ubuntu-14-04