Navigation
Unreal Engine C++ API Reference > Developer > DerivedDataCache
Inheritance Hierarchy
- FCacheRecord
References
Module | DerivedDataCache |
Header | /Engine/Source/Developer/DerivedDataCache/Public/DerivedDataCacheRecord.h |
Include | #include "DerivedDataCacheRecord.h" |
Syntax
class FCacheRecord
Remarks
A cache record is a key, an array of values, and metadata.
The key must uniquely correspond to its values. The key must never be reused for other values. The metadata does not have this requirement and may be used to persist details that vary, such as the time to generate the values or the machine that generated them.
Constructors
No constructors are accessible with public or protected access.
Functions
Type | Name | Description |
---|---|---|
const FCache... | GetKey () | Returns the key that identifies this record in the cache. |
const FCbObj... | GetMeta () | Returns the metadata. |
const FValue... | GetValue ( const FValueId& Id ) | Returns the value matching the ID. Null if no match. Data is null if skipped. |
TConstArrayV... | GetValues () | Returns a view of the values ordered by ID. Data is null if skipped. |
FOptionalCac... | Load ( const FCbPackage& Package ) | Load a cache record from a compact binary package. Null on error. |
FOptionalCac... | Load ( const FCbPackage& Attachments, const FCbObject& Object ) | Load a cache record from a compact binary package. Null on error. |
FCbPackage | Save () | Save the cache record to a compact binary package. |
void | Save ( FCbPackage& Attachments, FCbWriter& Writer ) | Append the cache record to an existing package and writer for e.g. a batch of records. |