Cachearium\Backend\CacheRAM::getData PHP Method

getData() public method

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