Interface for the Runtime Asset Cache. 更多...
#include <RuntimeAssetCacheInterface.h>
Public 成员函数 | |
| virtual void | AddToAsyncCompletionCounter (int32 Addend)=0 |
| Adds a number from the thread safe counter which tracks outstanding async requests. 更多... | |
| virtual bool | ClearCache ()=0 |
| Removes all cache entries. 更多... | |
| virtual bool | ClearCache (FName Bucket)=0 |
| Removes all cache from given bucket. 更多... | |
| virtual int32 | GetAsynchronous (IRuntimeAssetCacheBuilder *CacheBuilder)=0 |
| Asynchronously checks the cache. 更多... | |
| virtual int32 | GetAsynchronous (IRuntimeAssetCacheBuilder *CacheBuilder, const FOnRuntimeAssetCacheAsyncComplete &OnCompletionDelegate)=0 |
| Asynchronously checks the cache. 更多... | |
| virtual FVoidPtrParam | GetAsynchronousResults (int32 Handle)=0 |
| Gets asynchronous query results. 更多... | |
| virtual int32 | GetCacheSize (FName Bucket) const =0 |
| Gets cache size. 更多... | |
| virtual FVoidPtrParam | GetSynchronous (IRuntimeAssetCacheBuilder *CacheBuilder)=0 |
| Synchronously gets value from cache. 更多... | |
| virtual bool | PollAsynchronousCompletion (int32 Handle)=0 |
| Checks if worker finished execution. 更多... | |
| virtual void | Tick ()=0 |
| Ticks async thread. | |
| virtual void | WaitAsynchronousCompletion (int32 Handle)=0 |
| Waits until worker finishes execution. 更多... | |
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.
|
pure virtual |
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. |
|
pure virtual |
Removes all cache entries.
|
pure virtual |
Removes all cache from given bucket.
| Bucket | Bucket to clean. |
|
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. |
|
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. |
|
pure virtual |
Gets asynchronous query results.
| Handle | Worker handle to check. |
|
pure virtual |
Gets cache size.
| Bucket | to check. |
|
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. |
|
pure virtual |
Checks if worker finished execution.
| Handle | Worker handle to check. |
|
pure virtual |
Waits until worker finishes execution.
| Handle | Worker handle to wait for. |