Interface ITransactionalDataStore
Interface for a data store that holds feature flags and related data received by the SDK. This interface supports updating the store transactionally using ChangeSets.
Namespace: LaunchDarkly.Sdk.Server.Subsystems
Assembly: LaunchDarkly.ServerSdk.dll
Syntax
public interface ITransactionalDataStore
Remarks
Ordinarily, the only implementation of this interface is the default in-memory implementation, which holds references to actual SDK data model objects. Any data store implementation that uses an external store, such as a database, should instead use IPersistentDataStore or IPersistentDataStoreAsync.
Implementations must be thread-safe.
Properties
| Edit this page View SourceSelector
The selector for the currently stored data. The selector will be non-null but may be empty.
Declaration
Selector Selector { get; }
Property Value
| Type | Description |
|---|---|
| Selector |
Methods
| Edit this page View SourceApply(ChangeSet<ItemDescriptor>)
Apply the given change set to the store. This should be done atomically if possible.
Declaration
void Apply(DataStoreTypes.ChangeSet<DataStoreTypes.ItemDescriptor> changeSet)
Parameters
| Type | Name | Description |
|---|---|---|
| DataStoreTypes.ChangeSet<DataStoreTypes.ItemDescriptor> | changeSet | the changeset to apply |