Navigation
API > API/Developer > API/Developer/DerivedDataCache
Inheritance Hierarchy
- FCacheRecord
- FOptionalCacheRecord
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 FCacheKey & | GetKey () |
Returns the key that identifies this record in the cache. | |
| const FCbObject & | GetMeta () |
Returns the metadata. | |
| const FValueWithId & | Returns the value matching the ID. Null if no match. Data is null if skipped. | ||
| TConstArrayView< FValueWithId > | GetValues () |
Returns a view of the values ordered by ID. Data is null if skipped. | |
| FOptionalCacheRecord | Load
(
const FCbPackage& Package |
Load a cache record from a compact binary package. Null on error. | |
| FOptionalCacheRecord | Load
(
const FCbPackage& Attachments, |
||
| FCbPackage | Save () |
Save the cache record to a compact binary package. | |
| void | Save
(
FCbPackage& Attachments, |
Append the cache record to an existing package and writer for e.g. a batch of records. |