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.