ApcCache
Usage #
This will use the well-known cache system Apc
. You need to install the Apc php module if you want to use this cache method. Click here to know how to install Apc
To use ApcCache
, you do:
<?php
class MyReport extends \koolreport\KoolReport
{
use \koolreport\cache\ApcCache;
function cacheSettings()
{
return array(
"ttl"=>60,
);
}
...
}
The "ttl"
means Time To Live which is the time cache will store the result.