PHP code example of rapidwebltd / rw-file-cache

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

    

rapidwebltd / rw-file-cache example snippets




$cache = new \rapidweb\RWFileCache\RWFileCache();

$cache->changeConfig(["cacheDirectory" => "/tmp/rwFileCacheStorage/"]);

$cache->set('nursery_rhyme',"Mary had a little lamb", strtotime('+ 1 day'));

$var = $cache->get('nursery_rhyme');