Caching
Laravel offers a very simple to use Caching class, allowing you to easily cache anything you
need to, for however long you like. Confused? Let’s take a look at it in action.
17.1 Setup
There are many ways to store your cached data you must set a driver stating which storage
method you want to use in application/config/cache.php. The options are ‘file’, ‘memcached’,
‘apc’, ‘redis’, and ‘database’. You may experience better performance with ‘apc’ or ‘memcached’
but I am going to use ‘file’ based caching for its simplicity to setup.
1 <?php
2
3 'driver' => 'file',