PHP code example of koriym / fusion-cache

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

    

koriym / fusion-cache example snippets




use Koriym\FusionCache\DoctrineCache as FusionCache;
use Doctrine\Common\Cache\ApcCache;
use Doctrine\Common\Cache\FilesystemCache;

$cache = new FusionCache(new ApcCache, function () {return new FilesystemCache(sys_get_temp_dir());});
$data = $cache->fetch('cache_key')