/** * @inheritdoc */ protected function getItem($name) { $cacheKey = 'Item:' . $name; $cached = $this->getCache($cacheKey); if (empty($cached)) { $cached = parent::getItem($name); $this->setCache($cacheKey, $cached); } return $cached; }
/** * @inheritdoc * 废弃 */ public function getItem($name) { return parent::getItem($name); }