public function restore($key) { if (isset($this->cachedObjects[$key])) { return $this->cachedObjects[$key]; } return null; }