IDerivedDataCacheModule::CreateOrGetCache

Returns the cache, which is created by the first call to this function.

Windows
MacOS
Linux

References

Module

DerivedDataCache

Header

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

Include

#include "DerivedDataCacheInterface.h"

Syntax

FDerivedDataCacheInterface *const * CreateOrGetCache()

Remarks

Returns the cache, which is created by the first call to this function.

This always returns a pointer to a valid cache, but that pointer becomes null when the module shuts down and destroys the cache. This extra level of indirection allows a caller to observe the destruction of the cache without polling this function or monitoring the module lifetime.

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