PHP code example of corepos / class-cache

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

    

corepos / class-cache example snippets



$cacheLocation = '/path/to/cache/file.php';
$cache = new COREPOS\ClassCache\ClassCache($cacheLocation);

// cache a class
$cache->add('Class\\To\\Cache');

// load everything in the cache