BxDolCacheFile::getData PHP Method

getData() public method

Get all data from the cache file.
public getData ( string $sKey, integer $iTTL = false ) : the
$sKey string - file name
$iTTL integer - time to live
return the data is got from cache.
    function getData($sKey, $iTTL = false)
    {
        if (!file_exists($this->sPath . $sKey)) {
            return null;
        }
        if ($iTTL > 0 && $this->_removeFileIfTtlExpired($this->sPath . $sKey, $iTTL)) {
            return null;
        }
        include $this->sPath . $sKey;
        return $mixedData;
    }