PHP code example of cache / simple-cache-bridge

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

    

cache / simple-cache-bridge example snippets


use Cache\Adapter\PHPArray\ArrayCachePool;
use Cache\Bridge\SimpleCache\SimpleCacheBridge;

$pool = new ArrayCachePool();
$cache = new SimpleCacheBridge($pool);