1. Go to this page and download the library: Download koolreport/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/ */
koolreport / cache example snippets
class MyReport extends \koolreport\KoolReport
{
use \koolreport\cache\FileCache;
function cacheSettings()
{
return array(
"ttl"=>60,
);
}
...
}
class MyReport extends \koolreport\KoolReport
{
use \koolreport\cache\ApcCache;
function cacheSettings()
{
return array(
"ttl"=>60,
);
}
...
}
class MyReport extends \koolreport\KoolReport
{
use \koolreport\cache\MemCache;
function cacheSettings()
{
return array(
"ttl"=>60,
"servers"=>array(
"localhost"=>34212,
"1.233.222.24"=>1223
)
);
}
...
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.