FConcertDataStore::Store

Looks up the specified key, if it doesn't exist yet, adds new key/value pair, else, if the stored value type matches the specified value type, updates the value.

Windows
MacOS
Linux

References

Module

ConcertSyncCore

Header

/Engine/Plugins/Developer/Concert/ConcertSync/ConcertSyncCore/Source/ConcertSyncCore/Public/ConcertDataStore.h

Include

#include "ConcertDataStore.h"

Source

/Engine/Plugins/Developer/Concert/ConcertSync/ConcertSyncCore/Source/ConcertSyncCore/Private/ConcertDataStore.cpp

Syntax

FConcertDataStoreResult Store
(
    const FName & Key,
    const FName & TypeName,
    const FConcertSessionSerializedPayload & SerializedValue,
    const TOptional< uint32 > & Version
)

Remarks

Looks up the specified key, if it doesn't exist yet, adds new key/value pair, else, if the stored value type matches the specified value type, updates the value.

Returns

The operation result. The possible result codes are:

Parameters

Parameter

Description

Key

The value name to store.

TypeName

The value type name as returned by TConcertDataStoreType::GetFName().

SerializedValue

The value to store.

Version

If set, store the value with the specified version, otherwise, the server will set the version to 1 if the value is inserted or increment it by one if updated.

See Also

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss