PHP code example of don47 / database-cache-driver

1. Go to this page and download the library: Download don47/database-cache-driver 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/ */

    

don47 / database-cache-driver example snippets


'plugins' => [
  Don47\DatabaseCacheDriver\CachePlugin::class,
  ...
],

'connections' => [
  'fallback' => [
    'driver' => 'database',
    'connection' => 'mysql'
  ],
  ...
],

php craftsman plugin:install --class="\Don47\DatabaseCacheDriver\CachePlugin"

php craftsman migrate all