PHP code example of cakedc / cakephp-compress-cache

1. Go to this page and download the library: Download cakedc/cakephp-compress-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/ */

    

cakedc / cakephp-compress-cache example snippets


// ...
    'Cache' => [
        // ...

        'your_cache_configuration' => [
            'className' => \CakeDC\CompressCache\Cache\Engine\CompressEngine::class,
            'wrapped' => [
                'className' => \Cake\Cache\Engine\FileEngine::class,
                'prefix' => 'myapp_your_cache_configuration_',
                'path' => CACHE ,
                'serialize' => true,
                'duration' => '+1 years',
                'url' => env('CACHE_YOUR_CACHE_CONFIGURATION_URL', null),
            ],
            'duration' => '+24 hours',
        ],

        // ...
    ],
// ...