Navigation
API > API/Plugins > API/Plugins/ConcertSyncClient > API/Plugins/ConcertSyncClient/FConcertClientLocalDataStore
Description
Looks up the specified key, if it doesn't exist yet, adds new key/value pair at version 1, else if the stored value type matched the specified value type, overwrites the value and increment its version by one, otherwise, the operation fails.
| Name | Store |
| Type | function |
| Header File | /Engine/Plugins/Developer/Concert/ConcertSync/ConcertSyncClient/Source/ConcertSyncClient/Public/ConcertClientLocalDataStore.h |
| Include Path | #include "ConcertClientLocalDataStore.h" |
template<typename T>
TConcertDataStoreResult < T > Store
(
const FName & Key,
const T & Value
)
The operation result. The possible result codes are:
- EConcertDataStoreResultCode::Added if the key/value was added. The result holds a pointer on the newly added value.
- EConcertDataStoreResultCode::Exchanged if the existing key value was updated. The result holds a pointer on the latest stored value.
- EConcertDataStoreResultCode::TypeMismatch if the key was already taken but the value types did not match. The result holds a null pointer.
Parameters
| Name | Remarks |
|---|---|
| T | Any USTRUCT() struct or a supported basic types (int8, uint8, int16, uint16, int32, uint32, int64, uint64, float, double, bool, FName, FText, FString). |
| Key | The value name to store. |
| Value | The value to store. |