Doctrine\Common\Cache\PhpFileCache::doFetch PHP Method

doFetch() protected method

protected doFetch ( $id )
    protected function doFetch($id)
    {
        $value = $this->includeFileForId($id);
        if (!$value) {
            return false;
        }
        if ($value['lifetime'] !== 0 && $value['lifetime'] < time()) {
            return false;
        }
        return $value['data'];
    }

Usage Example

Example #1
0
 public function doFetch($id)
 {
     if (self::$invalidateOpCacheBeforeRead) {
         $this->invalidateCacheFile($id);
     }
     return parent::doFetch($id);
 }
All Usage Examples Of Doctrine\Common\Cache\PhpFileCache::doFetch