FDerivedDataCacheInterface::GetSynchronous

Synchronously checks the cache and if the item is present, it returns the cached results, otherwise tells the deriver to build the data and then updates the cache

Windows
MacOS
Linux

References

Module

DerivedDataCache

Header

/Engine/Source/Developer/DerivedDataCache/Public/DerivedDataCacheInterface.h

Include

#include "DerivedDataCacheInterface.h"

Syntax

bool GetSynchronous
(
    class FDerivedDataPluginInterface * DataDeriver,
    TArray< uint8 > & OutData,
    bool * bDataWasBuilt
)

Remarks

Synchronously checks the cache and if the item is present, it returns the cached results, otherwise tells the deriver to build the data and then updates the cache

Returns

true if the data was retrieved from the cache or the deriver built the data sucessfully. false can only occur if the plugin returns false.

Parameters

Parameter

Description

DataDeriver

plugin to produce cache key and in the event of a miss, return the data.

bDataWasBuilt

if non-null, set to true if the data returned had to be built instead of retrieved from the DDC. Used for stat tracking.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss