public function getData(CacheKey $k) { $cd = CacheData::unserialize($this->get($k)); if ($cd->checkUpdateToDate($this)) { return $cd; } $this->delete($k); throw new NotCachedException(); }