How to Install Memcache in Ubuntu
To install memcache in ubuntu run the following command
sudo apt-get install memcachedonce memcache is install you can set the configuration
sudo gedit /etc/memcached.confafter open this file you can find the default caching memory and port is
-m 64 //64 MB
-p 11211
Set as per requirement.You can check whether memcached service is running or not by using command
sudo service memcahed statusHow to use Memcache For PHP
define('HOST', '127.0.0.1');
define('PORT', '27645');
$memcache = new Memcache;
$cacheAvailable = $memcache->connect(HOST, PORT);
More Info Click Here





No comments:
Post a Comment