Navigation
API > API/Developer > API/Developer/DerivedDataCache
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.
| Name | FCacheRecordPolicy |
| Type | class |
| Header File | /Engine/Source/Developer/DerivedDataCache/Public/DerivedDataCachePolicy.h |
| Include Path | #include "DerivedDataCachePolicy.h" |
Syntax
class FCacheRecordPolicy
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Construct a cache record policy that uses the default policy. | DerivedDataCachePolicy.h | ||
FCacheRecordPolicy
(
ECachePolicy BasePolicy |
Construct a cache record policy with a uniform policy for the record and every value. | DerivedDataCachePolicy.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DefaultValuePolicy | ECachePolicy | DerivedDataCachePolicy.h | ||
| RecordPolicy | ECachePolicy | DerivedDataCachePolicy.h | ||
| Shared | TRefCountPtr< const Private::ICacheRecordPolicyShared > | DerivedDataCachePolicy.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ECachePolicy GetBasePolicy() |
Returns the base cache policy that this was constructed from. | DerivedDataCachePolicy.h | |
ECachePolicy GetRecordPolicy() |
Returns the cache policy to use for the record. | DerivedDataCachePolicy.h | |
TConstArrayView< FCacheValuePolicy > GetValuePolicies() |
Returns the array of cache policy overrides for values, sorted by ID. | DerivedDataCachePolicy.h | |
ECachePolicy GetValuePolicy
(
const FValueId& Id |
Returns the cache policy to use for the value. | DerivedDataCachePolicy.h | |
bool IsDefault() |
Returns true if this is the default cache policy with no overrides for values. | DerivedDataCachePolicy.h | |
bool IsUniform() |
Returns true if the record and every value use the same cache policy. | DerivedDataCachePolicy.h | |
FCacheRecordPolicy Transform
(
TFunctionRef< ECachePolicy(ECachePolicy)> Op |
Returns a copy of this policy transformed by an operation. | DerivedDataCachePolicy.h |