FCacheRecordBuilder

A cache record builder is used to construct a cache record.

Windows
MacOS
Linux

References

Module

DerivedDataCache

Header

/Engine/Source/Developer/DerivedDataCache/Public/DerivedDataCacheRecord.h

Include

#include "DerivedDataCacheRecord.h"

Syntax

class FCacheRecordBuilder

Remarks

A cache record builder is used to construct a cache record.

Create using a key that uniquely corresponds to the values for the cache record. The metadata may vary between records with the same key.

Constructors

Name Description

Public function

FCacheRecordBuilder

(
    const FCacheKey& Key
)

Create a cache record builder from a cache key.

Functions

Name Description

Public function

void

 

AddValue

(
    const FValueWithId& Value
)

Add a value to the cache record.

Public function

void

 

AddValue

(
    const FValueId& Id,
    const FValue& Value
)

Add a value to the cache record.

Public function

void

 

AddValue

(
    const FValueId& Id,
    const FCompositeBuffer& Buffer,
    uint64 BlockSize
)

Add a value to the cache record.

Public function

void

 

AddValue

(
    const FValueId& Id,
    const FSharedBuffer& Buffer,
    uint64 BlockSize
)

Add a value to the cache record.

Public function

FCacheRecord

 

Build()

Build a cache record, which makes this builder subsequently unusable.

Public function

void

 

BuildAsync

(
    IRequestOwner& Owner,
    FOnCacheRecordComplete&& OnComplet...
)

Build a cache record asynchronously, which makes this builder subsequently unusable.

Public function

void

 

SetMeta

(
    FCbObject&& Meta
)

Set the metadata for the cache record.

See Also