FCacheRecordPolicy

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

Unreal Engine C++ API Reference > Developer > DerivedDataCache

Inheritance Hierarchy

  • FCacheRecordPolicy

References

   
Module DerivedDataCache
Header /Engine/Source/Developer/DerivedDataCache/Public/DerivedDataCachePolicy.h
Include #include "DerivedDataCachePolicy.h"

Syntax

class FCacheRecordPolicy  

Remarks

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

Examples:

  • A base policy of None 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

Type Name Description
  FCacheRecordPolicy () Construct a cache record policy that uses the default policy.
  FCacheRecordPolicy ( ECachePolicy BasePolicy ) Construct a cache record policy with a uniform policy for the record and every value.

Functions

Type Name Description
ECachePolicy GetBasePolicy () Returns the base cache policy that this was constructed from.
ECachePolicy GetRecordPolicy () Returns the cache policy to use for the record.
TConstArrayV... GetValuePolicies () Returns the array of cache policy overrides for values, sorted by ID.
ECachePolicy GetValuePolicy ( const FValueId& Id ) Returns the cache policy to use for the value.
bool IsDefault () Returns true if this is the default cache policy with no overrides for values.
bool IsUniform () Returns true if the record and every value use the same cache policy.
FCacheRecord... Transform ( TFunctionRef< ECachePolicy(ECachePo... ) Returns a copy of this policy transformed by an operation.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library