Navigation
API > API/Developer > API/Developer/DerivedDataCache
Inheritance Hierarchy
- FCacheRecordPolicy
- FOptionalCacheRecordPolicy
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 | |
|---|---|---|---|
| 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 | Returns the base cache policy that this was constructed from. | ||
| ECachePolicy | Returns the cache policy to use for the record. | ||
| TConstArrayView< FCacheValuePolicy > | 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. | |
| FCacheRecordPolicy | Transform
(
TFunctionRef< ECachePolicy(ECachePolicy)> Op |
Returns a copy of this policy transformed by an operation. |