Installation instructions can be found on the Github LswMemcacheBundle readme.
When building high traffic websites you probably heard about “Memcache”. If you want to optimize your web application for high load and/or fast page loads this is an indispensable tool. The memcache website states about the software that it is a:
“Free & open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.
Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.” — memcached.org
One of the ways you can apply Memcache is as a session storage solution. It will manage your session data without doing disk I/O on web or database servers. You can also run it as a central object storage for your website. In this role it is used for caching expensive API calls or database queries.
PHP 5 has good support for Memcache using the “Memcache” and “Memcached” modules (note that there is a one-letter difference). The first module calls the Memcache daemon directly, while the second one uses “libmemcached” to communicate. You can see the difference between them in terms of features in a matrix on the Memcached wiki. We chose the “Memcached” module, because it offers more features, is newer and faster because it supports the binary protocol.
At LeaseWeb we have created a Symfony2 bundle with Web Debug Toolbar integration to help you optimize your web application performance. It is called ‘LswMemcacheBundle’ and can be found on Github and Packagist.