PHP code example of optimisme / optimisme-cache

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

    

optimisme / optimisme-cache example snippets



heManager = new Optimisme\Cache();

$cacheManager->cache(function() {
    


heManager = new Optimisme\Cache();

if ($cacheManager->open()):
    


eCache = new Optimisme\Cache(null, 1200);
$pageCache->cache(function() {