private static function getContents($fh,FileSystemCacheKey $key) {
		//get the existing file contents
		$contents = stream_get_contents($fh);
		$data = @unserialize($contents);
		
		//if we can't unserialize the data or if the data is expired
		if(!$data || !($data instanceof FileSystemCacheValue) || $data->isExpired()) {
			//release lock
			self::closeFile($fh);
			
			//delete the cache file so we don't try to retrieve it again
			self::invalidate($key);
			
			return false;
		}
		
		return $data;
	}
private static function getContents($fh,FileSystemCacheKey $key) {
		//get the existing file contents
		$contents = stream_get_contents($fh);
		$data = @unserialize($contents);
		
		//if we can't unserialize the data or if the data is expired
		if(!$data || !($data instanceof FileSystemCacheValue) || $data->isExpired()) {
			//release lock
			self::closeFile($fh);
			
			//delete the cache file so we don't try to retrieve it again
			self::invalidate($key);
			
			return false;
		}
		
		return $data;
	}
private static function getContents ( $ fh , FileSystemCacheKey $ key ) { //get the existing file contents $ contents = stream_get_contents ( $ fh ) ; $ data = @ unserialize ( $ contents ) ; //if we can't unserialize the data or if the data is expired if ( ! $ data || ! ( $ data instanceof FileSystemCacheValue ) || $ data -> isExpired ( ) ) { //release lock self :: closeFile ( $ fh ) ; //delete the cache file so we don't try to retrieve it again self :: invalidate ( $ key ) ; return false ; } return $ data ; }
Returns the contents of a cache file.  If the data is not in the right form or expired, it will be invalidated.
@param resource $fh The file handle
@param FileSystemCacheKey $key The cache key.  This is used to invalidate the key when the data is expired.
@return boolean|FileSystemCacheValue FALSE if something went wrong or the data is expired.  Otherwise, a FileSystemCacheValue object will be returned.
Returns the contents of a cache file . If the data is not in the right form or expired it will be invalidated .