PHP code example of ardagedik / basic-cache
1. Go to this page and download the library: Download ardagedik/basic-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/ */
ardagedik / basic-cache example snippets
rdaGedik\BasicCache;
$cache = new BasicCache();
$cache->start();
// These options are assigned by default
$cache = new BasicCache([
"path" => "cache/",
"expire" => 60,
"extension" => ".html"
]);
// Clear all cache files
$cache->clear();