Navigation
API > API/Plugins > API/Plugins/DataRegistry
Information about success and usage safety of cache queries
| Name | FDataRegistryCacheGetResult |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/DataRegistry/Source/DataRegistry/Public/DataRegistryTypes.h |
| Include Path | #include "DataRegistryTypes.h" |
Syntax
struct FDataRegistryCacheGetResult
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Default constructors, represents a failed get | DataRegistryTypes.h | ||
FDataRegistryCacheGetResult
(
const FDataRegistryCacheGetResult& Other |
DataRegistryTypes.h | ||
FDataRegistryCacheGetResult
(
EDataRegistryCacheGetStatus InStatus, |
Explicit constructor for successful get | DataRegistryTypes.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CacheVersion | int32 | For persistent cache results, the version number of the registry at cache retrieval time | DataRegistryTypes.h | |
| ItemStatus | EDataRegistryCacheGetStatus | Status of item inside cache | DataRegistryTypes.h | |
| VersionSource | EDataRegistryCacheVersionSource | Status of item inside cache | DataRegistryTypes.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 GetCacheVersion() |
Returns the cache version number | DataRegistryTypes.h | |
EDataRegistryCacheGetStatus GetItemStatus() |
Returns the success/failure status | DataRegistryTypes.h | |
EDataRegistryCacheVersionSource GetVersionSource() |
Returns the version source, which is used to validate | DataRegistryTypes.h | |
bool IsPersistent() |
Returns true if this cached value is safe to persist | DataRegistryTypes.h | |
bool IsValidForVersion
(
EDataRegistryCacheVersionSource InVersionSource, |
Returns true if this cached value is safe to use given the version number | DataRegistryTypes.h | |
bool WasFound() |
Return true if get was successful | DataRegistryTypes.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
operator bool() |
DataRegistryTypes.h | ||
bool operator!() |
DataRegistryTypes.h | ||
FDataRegistryCacheGetResult & operator=
(
const FDataRegistryCacheGetResult& Other |
DataRegistryTypes.h |