FCacheRecordPolicy

Flags to control the behavior of cache record requests, with optional overrides by value.

Windows
MacOS
Linux

References

Module

DerivedDataCache

Header

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

Include

#include "DerivedDataCache.h"

Syntax

class FCacheRecordPolicy

Remarks

Flags to control the behavior of cache record requests, with optional overrides by value.

Examples:

  • A base policy of Disable, with value policy overrides of Default, will fetch those values if they exist in the record, and skip data for any other values.

  • A base policy of Default, with value policy overrides of (Query | SkipData), will skip those values, but still check if they exist, and will load any other values.

Constructors

Name Description

Public function

FCacheRecordPolicy()

Construct a cache record policy that uses the default policy.

Public function

FCacheRecordPolicy

(
    ECachePolicy Policy
)

Construct a cache record policy with a uniform policy for the record and every value.

Functions

Name Description

Public function Const

ECachePolicy

 

GetDefaultValuePolicy()

Returns the cache policy to use for values with no override.

Public function Const

ECachePolicy

 

GetRecordPolicy()

Returns the cache policy to use for the record.

Public function Const

TConstArrayV...

 

GetValuePolicies()

Returns the array of cache policy overrides for values, sorted by ID.

Public function Const

ECachePolicy

 

GetValuePolicy

(
    const FValueId& Id
)

Returns the cache policy to use for the value.

Public function Const

bool

 

IsUniform()

Returns true if the record and every value use the same cache policy.

Public function Const

FCacheRecord...

 

Transform

(
    TFunctionRef< ECachePolicy...
)

Returns a copy of this policy transformed by an operation.