Undoubtedly, memcached is the best caching system can be run distributed reaching extreme performance ( it uses libevent find).
As dependency to be used we will need: libevent, memcached and php-memcached PECL.
## Install PHP PECL Memcache and memcached-(Dependencies will be installed along with them)
yum install php-pecl-memcache memcached## To Configure the memcached edit the file ‘/ etc / sysconfig / memcached “as follows:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Memcached configuration file
# Port used
PORT=”11211″
# User daemon runs memcached
USER=”memcached”
# The maximum number of connections
MAXCONN=”1024″
# Size of memory that can be used
Cachesize=”512″
OPTIONS=”"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
## Activate memcached to start at boot
chkconfig memcached on## Start the daemon
memcached service home







