Interface PreferenceStore
Methods
get
-
Type parameters
Parameters
-
key: string
-
Optional options: { defaultValue?: V; scope?: PreferenceScope | string }
-
Optional defaultValue?: V
-
Returns Promise<V | undefined>
list
-
Type parameters
Parameters
Returns Promise<Array<{ key: string; value: V }>>
put
-
Type parameters
Parameters
-
key: string
-
value: V
-
Optional options: { scope?: PreferenceScope | string; ttl?: number }
Strategy to store and retrieve SDM preferences.