You are here

public function AcquiaLiftReportCache::getCachedReports in Acquia Lift Connector 7

Same name and namespace in other branches
  1. 7.2 includes/AcquiaLiftReportCache.inc \AcquiaLiftReportCache::getCachedReports()

Implements AcquiaLiftReportCacheInterface::getCachedReports().

Overrides AcquiaLiftReportCacheInterface::getCachedReports

File

includes/acquia_lift.classes.inc, line 1701
Provides an agent type for Acquia Lift

Class

AcquiaLiftReportCache
Class AcquiaLiftReportCache

Code

public function getCachedReports($agent_name) {
  if (!isset($this->cache[$agent_name])) {
    if ($get = cache_get($agent_name, $this->bin)) {
      $this->cache[$agent_name] = $get->data;
    }
    else {
      $this->cache[$agent_name] = FALSE;
    }
  }
  return $this->cache[$agent_name];
}