FCacheRecord

A cache record is a key, an array of values, and metadata.

Windows
MacOS
Linux

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

Name Description

Public function Const

const FCache...

 

GetKey()

Returns the key that identifies this record in the cache.

Public function Const

const FCbObj...

 

GetMeta()

Returns the metadata.

Public function Const

const FValue...

 

GetValue

(
    const FValueId& Id
)

Returns the value matching the ID. Null if no match. Data is null if skipped.

Public function Const

TConstArrayV...

 

GetValues()

Returns a view of the values ordered by ID. Data is null if skipped.

Public function Static

FOptionalCac...

 

Load

(
    const FCbPackage& Package
)

Load a cache record from a compact binary package. Null on error.

Public function Static

FOptionalCac...

 

Load

(
    const FCbPackage& Attachments,
    const FCbObject& Object
)

Load a cache record from a compact binary package. Null on error.

Public function Const

FCbPackage

 

Save()

Save the cache record to a compact binary package.