Interface IDataStoreMetadata
This interface is to allow extending init without a major version. This interface should be removed in the next major version of the SDK and headers should be added in the IDataStore interface.
Namespace: LaunchDarkly.Sdk.Server.Subsystems
Assembly: LaunchDarkly.ServerSdk.dll
Syntax
public interface IDataStoreMetadata
Methods
| Edit this page View SourceGetMetadata()
Metadata associated with the data store content.
Declaration
DataStoreTypes.InitMetadata GetMetadata()
Returns
Type | Description |
---|---|
DataStoreTypes.InitMetadata | metadata associated with the store content |
InitWithMetadata(FullDataSet<ItemDescriptor>, InitMetadata)
Overwrites the store's contents with a set of items for each collection.
Declaration
void InitWithMetadata(DataStoreTypes.FullDataSet<DataStoreTypes.ItemDescriptor> allData, DataStoreTypes.InitMetadata metadata)
Parameters
Type | Name | Description |
---|---|---|
DataStoreTypes.FullDataSet<DataStoreTypes.ItemDescriptor> | allData | a list of DataStoreTypes.DataKind instances and their corresponding data sets |
DataStoreTypes.InitMetadata | metadata | metadata assciated with the payload |
Remarks
All previous data should be discarded, regardless of versioning.
The update should be done atomically. If it cannot be done atomically, then the store must first add or update each item in the same order that they are given in the input data, and then delete any previously stored items that were not in the input data.