0

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?

ext.email
  • 3
  • 1

2 Answers2

1

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

harrrrrrry
  • 13,643
  • 2
  • 23
  • 28
0

Probably you haven't installed memcached on your pc that's why you are getting error.

Please check following post:

HOW TO: Install Memcache on XAMPP (Windows 7/8/10)

Community
  • 1
  • 1
Plycoder
  • 721
  • 1
  • 6
  • 18