Interface ISerenityHubKeyValueStore
Minimal string key/value persistence boundary the Hub's session- and preference-backed services depend on. Isolates UnityEditor.SessionState / UnityEditor.EditorPrefs access behind an explicit, constructor-injected dependency so cache freshness, eviction, and serialization logic can be tested against a fake instead of real editor-global state.
Namespace: Serenity.Localization.Installation.Settings.Editor.Hub.Services
Assembly: Serenity.UnityLocalization.Installation.Editor.dll
Syntax
public interface ISerenityHubKeyValueStore
Methods
SetValue(string, string)
Writes value to key, replacing any existing value.
Declaration
void SetValue(string key, string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | |
| string | value |
TryGetValue(string, out string)
Reads the value stored at key, if any.
Declaration
bool TryGetValue(string key, out string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | |
| string | value |
Returns
| Type | Description |
|---|---|
| bool |