Interface ITsakStateStore

Assembly: redb.Tsak.Core.dll

Persistent key-value state store for context and coordinator state.
Used to persist autoStart flags, context config, last-known state on restart.
InMemory for Standalone, redb-backed for Single/Cluster.

CONTRACT: keys are compared ORDINALLY, case-sensitive — Get/Set/Remove
and alike, on every implementation. The rule lives here on the
interface (owner decision 2026-09-02): before that the redb store was ordinal while the
in-memory default folded case, so code developed standalone silently changed behavior when
deployed clustered (review 2026-09-02, С7). Very long keys may be stored in a normalized
deterministic form; round-tripping through returns the stored
form.

public interface ITsakStateStore

Methods

GetAsync(string)

Task<string?> GetAsync(string key)

GetByPrefixAsync(string)

Task<IReadOnlyDictionary<string, string>> GetByPrefixAsync(string prefix)

RemoveAsync(string)

Task RemoveAsync(string key)

SetAsync(string, string)

Task SetAsync(string key, string value)