![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <RuntimeAssetCache.h>
Inheritance diagram for FRuntimeAssetCache:Public Member Functions | |
| virtual FVoidPtrParam | GetSynchronous (IRuntimeAssetCacheBuilder *CacheBuilder) override |
| virtual int32 | GetAsynchronous (IRuntimeAssetCacheBuilder *CacheBuilder, const FOnRuntimeAssetCacheAsyncComplete &OnCompletionDelegate) override |
| virtual int32 | GetAsynchronous (IRuntimeAssetCacheBuilder *CacheBuilder) override |
| virtual int32 | GetCacheSize (FName Bucket) const override |
| virtual bool | ClearCache () override |
| virtual bool | ClearCache (FName Bucket) override |
| virtual void | WaitAsynchronousCompletion (int32 Handle) override |
| virtual FVoidPtrParam | GetAsynchronousResults (int32 Handle) override |
| virtual bool | PollAsynchronousCompletion (int32 Handle) override |
| virtual void | AddToAsyncCompletionCounter (int32 Addend) override |
| virtual void | Tick () override |
| FRuntimeAssetCache () | |
| ~FRuntimeAssetCache () | |
Public Member Functions inherited from FRuntimeAssetCacheInterface | |
| virtual | ~FRuntimeAssetCacheInterface () |
Concrete class implementing FRuntimeAssetCacheInterface.
| FRuntimeAssetCache::FRuntimeAssetCache | ( | ) |
End of FRuntimeAssetCacheInterface implementation Constructor
| FRuntimeAssetCache::~FRuntimeAssetCache | ( | ) |
Destructor
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. |
Implements FRuntimeAssetCacheInterface.
|
overridevirtual |
Removes all cache entries.
Tell backend to clean itself up.
If backend is cleaned up, clean up all buckets.
Implements FRuntimeAssetCacheInterface.
Removes all cache from given bucket.
| Bucket | Bucket to clean. |
Tell backend to clean bucket up.
If backend is cleaned up, clean up all buckets.
Implements FRuntimeAssetCacheInterface.
|
overridevirtual |
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. |
Implements FRuntimeAssetCacheInterface.
|
overridevirtual |
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. |
Must return a valid handle
Make sure task isn't processed twice.
Implements FRuntimeAssetCacheInterface.
|
overridevirtual |
Gets asynchronous query results.
| Handle | Worker handle to check. |
Implements FRuntimeAssetCacheInterface.
Gets cache size.
| Bucket | to check. |
Implements FRuntimeAssetCacheInterface.
|
overridevirtual |
FRuntimeAssetCacheInterface implementation
Implements FRuntimeAssetCacheInterface.
Checks if worker finished execution.
| Handle | Worker handle to check. |
Implements FRuntimeAssetCacheInterface.
|
overridevirtual |
Ticks async thread.
Implements FRuntimeAssetCacheInterface.
Waits until worker finishes execution.
| Handle | Worker handle to wait for. |
Implements FRuntimeAssetCacheInterface.