Caching Hat-trick: Varnish, Memcached and PHP libraries
Previously, we looked at some common caching mechanisms we can easily utilize to make our apps faster. In this part, we’ll walk through some of the additional software that we can use with PHP for caching.
Memcached is an in-memory key-value store. You can use it to store things like strings, numeric values, objects and arrays.
You can execute the command below to install memcached on ubuntu or other debian based OS:
sudo apt-get install memcached
To make it work with PHP, you also need to install the PHP extension:
sudo apt-get install php5-memcached
To check if memcached is working, look for ‘memcached’ in the output returned when you call the
phpinfo() method from a page. You should see something similar to the following:
Continue reading %Caching Hat-trick: Varnish, Memcached and PHP libraries%