getInfo() abstract public method

Returns an array of cached data; false if invalid type.
abstract public getInfo ( $p_type = self::CACHE_VALUES_INFO ) : array
$p_type
return array
Esempio n. 1
0
 /**
  * Retrieves cache information and metadata from the cache store.
  *
  * @param string
  *    $p_type If given is 'user', information about the user cache will
  *            be returned, otherwise system cache information.
  *
  * @return mixed
  *               array Cached data and metadata
  *               boolean FALSE on failure
  */
 public function info($p_type = null)
 {
     if (!self::$m_enabled) {
         return false;
     }
     $type = $p_type == 'user' ? CacheEngine::CACHE_VALUES_INFO : CacheEngine::CACHE_PAGES_INFO;
     return $this->m_cacheEngine->getInfo($type);
 }