Phalcon offers developers the option to use multi-level caches. With the help of a multi-level cache, you can create a very flexible caching logic, caching different pieces of information of your application to different adapters with different lifetimes. You can then retrieve this information beginning with the fastest (as the adapters were registered) and finishing with the slowest until the lifetime expires.
In this recipe, you will learn how to use multi-level caches in your application and see that the configuration and the usage of such caches does not differ from one adapter to another.
To successfully implement this recipe, we will need a working application, which will need to be able to receive and handle requests. You can use an application skeleton created with Phalcon Devtools. If you have one already, you can use it.
In this recipe, we will showcase multi-level caching by using different adapters that could...