DVWindowSharedStore class
Constructors
Properties
- debounce → Duration
-
A signal changing per frame must not produce a write per frame.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spillThresholdBytes → int
-
Values larger than this go to file storage, leaving a pointer behind.
final
Methods
-
dispose(
) → Future< void> -
evictCache(
) → void - Drops the in-memory copy so the next read goes to the backend.
-
flush(
String key) → Future< void> - Writes now, bypassing the debounce. Tear-out uses this: the window is about to open and the state has to be there when it reads.
-
get(
String key) → Future< DVJsonValue?> -
keys(
) → Future< List< String> > -
namespace(
String prefix) → DVSharedStoreNamespace - The handle a package keeps its state in the namespace it claimed with.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
String key) → Future< void> -
set(
String key, DVJsonValue? value) → Future< void> -
Writes
value, coalescing rapid writes to the same key. -
signal(
String key) → ValueListenable< DVJsonValue?> -
A live signal for
key, updated by this window and by any other. -
toString(
) → String -
A string representation of this object.
inherited
-
watch(
String key) → Stream< DVJsonValue?>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- defaultAppKeys ↔ DVAppKeyStoreSource
-
Where a store made without
appKeysfinds the application key store.getter/setter pair -
reservedPrefixes
→ List<
String> -
Namespaces an application may not touch.
no setter
-
sealedPrefixes
→ List<
String> -
Namespaces written only encrypted under the application key, whatever
cipher the store was given, and refused when no key can be had.
no setter
Static Methods
-
noAppKeys(
) → Future< DVAppKeyStore?> - A source with no key store: what a store has until one is configured.
-
releaseNamespace(
String prefix) → void -
Hands back a prefix claimed with reserveNamespace. The framework's own
dv.andworkspace.stay reserved. -
reserveNamespace(
String prefix, {bool sealed = false}) → void -
Claims
prefixfor a package: applications are refused it, as they are refuseddv., and the package reaches it through namespace.sealedkeeps every value there encrypted under the application key.