cleanupId($id); if (array_key_exists($id, self::$staticCache)) { return self::$staticCache[$id]; } return parent::get($id); } /** * A function to store content a cache entry. * * @param string $id The cache entry ID * @param array $content The cache content * @throws \Exception * @return bool True if the entry was succesfully stored */ public function set($id, $content) { if (empty($id)) { return false; } $id = $this->cleanupId($id); self::$staticCache[$id] = $content; return parent::set($id, $content); } }