PHP code example of thamtech / yii2-multilevel-cache

1. Go to this page and download the library: Download thamtech/yii2-multilevel-cache library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

thamtech / yii2-multilevel-cache example snippets



'components' => [
    'cache' => [
        'class' => 'thamtech\caching\multilevel\BiLevelCache',
        'level1' => [
            'class' => 'yii\caching\ArrayCache',
            'serializer' => false,
        ],
        'level2' => [
            'class' => 'yii\caching\FileCache',
        ],
    ],
],