Navigation
API > API/Runtime > API/Runtime/RuntimeAssetCache
Interface for the Runtime Asset Cache. Cache is split into buckets to cache various assets separately. Bucket names and maximum sizes are configure via Engine.ini config file using the following syntax [RuntimeAssetCache] +BucketConfigs=(Name="
| Name | FRuntimeAssetCacheInterface |
| Type | class |
| Header File | /Engine/Source/Runtime/RuntimeAssetCache/Public/RuntimeAssetCacheInterface.h |
| Include Path | #include "RuntimeAssetCacheInterface.h" |
Syntax
class FRuntimeAssetCacheInterface
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FRuntimeAssetCacheInterface() |
RuntimeAssetCacheInterface.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddToAsyncCompletionCounter
(
int32 Addend |
Adds a number from the thread safe counter which tracks outstanding async requests. | RuntimeAssetCacheInterface.h | |
bool ClearCache () |
Removes all cache entries. | RuntimeAssetCacheInterface.h | |
bool ClearCache
(
FName Bucket |
Removes all cache from given bucket. | RuntimeAssetCacheInterface.h | |
int32 GetAsynchronous
(
IRuntimeAssetCacheBuilder* CacheBuilder |
Asynchronously checks the cache. | RuntimeAssetCacheInterface.h | |
int32 GetAsynchronous
(
IRuntimeAssetCacheBuilder* CacheBuilder, |
Asynchronously checks the cache. | RuntimeAssetCacheInterface.h | |
FVoidPtrParam GetAsynchronousResults
(
int32 Handle |
Gets asynchronous query results. | RuntimeAssetCacheInterface.h | |
int32 GetCacheSize
(
FName Bucket |
Gets cache size. | RuntimeAssetCacheInterface.h | |
FVoidPtrParam GetSynchronous
(
IRuntimeAssetCacheBuilder* CacheBuilder |
Synchronously gets value from cache. | RuntimeAssetCacheInterface.h | |
bool PollAsynchronousCompletion
(
int32 Handle |
Checks if worker finished execution. | RuntimeAssetCacheInterface.h | |
void Tick() |
Ticks async thread. | RuntimeAssetCacheInterface.h | |
void WaitAsynchronousCompletion
(
int32 Handle |
Waits until worker finishes execution. | RuntimeAssetCacheInterface.h |