PHP code example of dealerinspire / cache-driver-failover
1. Go to this page and download the library: Download dealerinspire/cache-driver-failover 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/ */
dealerinspire / cache-driver-failover example snippets
...
'providers' => [
...
/*
* Package Service Providers...
*/
DealerInspire\AppCache\AppCacheProvider::class,
...
],
...
...
'app_cache_driver' => 'value',
...
public function __construct(AppCacheContract $cache)
{
$this->cache = $cache;
}