FileCache

Usage #

This is another well-known caching system in PHP. You will need to install the MemCached PHP Module to use the cache method.Click here to know how to install MemCached

To use the MemCache you do:

<?php

class MyReport extends \koolreport\KoolReport
{
    use \koolreport\cache\MemCache;

    function cacheSettings()
    {
        return array(
            "ttl"=>60,
            "servers"=>array(
                "localhost"=>34212,
                "1.233.222.24"=>1223
            )
        );
    }
    ...
}

The "ttl" means Time To Live which is the time cache will store the result. And the "servers" contains the list of memcahe servers you want to use.

Get started with KoolReport

KoolReport will help you to construct good php data report by gathering your data from multiple sources, transforming them into valuable insights, and finally visualizing them in stunning charts and graphs.