![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <RuntimeAssetCacheInterface.h>
Inheritance diagram for FRuntimeAssetCacheInterface:Public Member Functions | |
| virtual | ~FRuntimeAssetCacheInterface () |
| virtual FVoidPtrParam | GetSynchronous (IRuntimeAssetCacheBuilder *CacheBuilder)=0 |
| virtual int32 | GetAsynchronous (IRuntimeAssetCacheBuilder *CacheBuilder, const FOnRuntimeAssetCacheAsyncComplete &OnCompletionDelegate)=0 |
| virtual int32 | GetAsynchronous (IRuntimeAssetCacheBuilder *CacheBuilder)=0 |
| virtual int32 | GetCacheSize (FName Bucket) const =0 |
| virtual bool | ClearCache ()=0 |
| virtual bool | ClearCache (FName Bucket)=0 |
| virtual void | WaitAsynchronousCompletion (int32 Handle)=0 |
| virtual FVoidPtrParam | GetAsynchronousResults (int32 Handle)=0 |
| virtual bool | PollAsynchronousCompletion (int32 Handle)=0 |
| virtual void | AddToAsyncCompletionCounter (int32 Addend)=0 |
| virtual void | Tick ()=0 |
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="<Plugin name>", Size=<Maximum bucket size in bytes>) This API is fully thread safe.
|
inlinevirtual |
Adds a number from the thread safe counter which tracks outstanding async requests. This is used to ensure everything is complete prior to shutdown.
| Value | to add to counter. Can be negative. |
Implemented in FRuntimeAssetCache.
Removes all cache entries.
Implemented in FRuntimeAssetCache.
Removes all cache from given bucket.
| Bucket | Bucket to clean. |
Implemented in FRuntimeAssetCache.
|
pure virtual |
Asynchronously checks the cache. If value is not found, builds entry using CacheBuilder and updates cache.
| CacheBuilder | Builder to produce cache key and in the event of a miss, return the data. |
Implemented in FRuntimeAssetCache.
|
pure virtual |
Asynchronously checks the cache. If value is not found, builds entry using CacheBuilder and updates cache.
| CacheBuilder | Builder to produce cache key and in the event of a miss, return the data. |
| OnCompletionDelegate | Delegate to call when cache is ready. Delegate is called on main thread. |
Implemented in FRuntimeAssetCache.
|
pure virtual |
Gets asynchronous query results.
| Handle | Worker handle to check. |
Implemented in FRuntimeAssetCache.
Gets cache size.
| Bucket | to check. |
Implemented in FRuntimeAssetCache.
|
pure virtual |
Synchronously gets value from cache. If value is not found, builds entry using CacheBuilder and updates cache.
| CacheBuilder | Builder to produce cache key and in the event of a miss. |
Implemented in FRuntimeAssetCache.
Checks if worker finished execution.
| Handle | Worker handle to check. |
Implemented in FRuntimeAssetCache.
Ticks async thread.
Implemented in FRuntimeAssetCache.
Waits until worker finishes execution.
| Handle | Worker handle to wait for. |
Implemented in FRuntimeAssetCache.