FDerivedDataCacheInterface::GetSynchronous

Synchronously checks the cache and if the item is present, it returns the cached results, otherwise it returns false.

Unreal Engine C++ API Reference > Developer > DerivedDataCache > FDerivedDataCacheInterface > GetSynchronous

References

   
Module DerivedDataCache
Header /Engine/Source/Developer/DerivedDataCache/Public/DerivedDataCacheInterface.h
Include #include "DerivedDataCacheInterface.h"
bool GetSynchronous
(
    const TCHAR * CacheKey,
    [TArray](API\Runtime\Core\Containers\TArray)< uint8 > & OutData,
    FStringView DebugContext
)

Remarks

Synchronously checks the cache and if the item is present, it returns the cached results, otherwise it returns false.

Prefer to use a FDerivedDataPluginInterface instead of generating the key directly. true if the data was retrieved from the cache.

Parameters

Name Description
CacheKey Key to identify the data.
DebugContext A string used to describe the data being generated. Typically the path to the object that it is generated from is sufficient.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library