Create a bucket to store data in.
Namespace for the storage to be stored under, will inherit previous namespaces too
Observe the value over time for a particular key in the current bucket.
Unique key associated with the data
The observable will only emit values when the value changes in the underlying storage, although multiple values with the same shape may be emitted in a row.
If a StorageApi.snapshot of a key is retrieved and the presence is
'unknown', then you are guaranteed to receive a snapshot with a known
presence, as long as you observe the key within the same tick.
Since the emitted values are shared across all subscribers, it is important not to mutate the returned values. The values may be frozen as a precaution.
Remove persistent data.
Unique key associated with the data.
Save persistent data, and emit messages to anyone that is using StorageApi.observe$ for this key.
Unique key associated with the data.
The data to be stored under the key.
Returns an immediate snapshot value for the given key, if possible.
Combine with StorageApi.observe$ to get notified of value changes.
Note that this method is synchronous, and some underlying storages may be unable to retrieve a value using this method - the result may or may not consistently have a presence of 'unknown'. Use StorageApi.observe$ to be sure to receive an actual value eventually.
Provides a key-value persistence API.