PHP code example of dimafe6 / redis-compressed-cache

1. Go to this page and download the library: Download dimafe6/redis-compressed-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/ */

    

dimafe6 / redis-compressed-cache example snippets


return [
    'prefix'          => config('cache.prefix'),
    'connection'      => env('REDIS_COMPRESSED_CACHE_CONNECTION', 'cache'),
    'lock_connection' => env('REDIS_COMPRESSED_CACHE_LOCK_CONNECTION', 'default'),
    'enabled'         => env('REDIS_COMPRESSED_CACHE_ENABLED', true),
];

'redis' => [
    'driver'          => 'redis-compressed',
    'connection'      => 'cache',
    'lock_connection' => 'default',
]

'redis-compressed' => [
    'driver'          => 'redis-compressed',
]
bash
php artisan vendor:publish --tag="redis-compressed-cache-config"