Navigation
API > API/Plugins > API/Plugins/ElectraPlayerRuntime > API/Plugins/ElectraPlayerRuntime/IElectraPlayerDataCache
Description
Asks to add an item to the cache. Whether or not the item gets added is under the purview of the cache implementation. As such, this method has no return value to indicate success.
This method should not block to wait until the cache has been updated. It should merely schedule an asynchronous update and defer writing the data to the storage to some asynchronous task.
| Name | AddElementToCache |
| Type | function |
| Header File | /Engine/Plugins/Media/ElectraPlayer/Source/ElectraPlayerRuntime/Public/IElectraPlayerDataCache.h |
| Include Path | #include "IElectraPlayerDataCache.h" |
void AddElementToCache
(
const FItemInfo & ItemInfoToCache,
FCacheDataPtr DataToCache
)