Symfony Cache


Symfony 3.1 brings with it the inclusion of the Cache component.

Caching is a great way to improve the performance of your project.

The uses for caching are many and varied, but a very common use case in web applications is to store content that is generated during the request / response lifecycle, and re-use it when responding to similar requests.

The idea here is that if there is some expensive operation on a given page, but the result is used every time that page is loaded, it only need be computed once, saved, and then this saved version be returned for subsequent requests, rather than doing the expensive computation again, and again.

Of course, caching being a common technique to gain these speed boosts, it follows that numerous solutions exist, none of which follow a given standard.

PSR-6 aims to solve this.

The Symfony Cache component is a strict implemention of the PSR-6 standard, meaning what you learn here should be directly transferable to any other project that adopts PSR-6.

Episodes

Presented By

Christopher Moss

Christopher Moss

Hi, I'm Chris and welcome to CodeReviewVideos.com. In this video you will learn about... :)