Caching Hat-trick: Varnish, Memcached and PHP libraries
Category: BrunoS, cache, caching, doctrine, memcached, OOPHP, Performance, Performance & Scaling, PHP, varnish
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
Memcached is an in-memory key-value store. You can use it to store things like strings, numeric values, objects and arrays.
Installing Memcached
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%
LEAVE A REPLY
You must be logged in to post a comment.