DVPageStore class
Stores documents through DV.Database, WordPress-style: page content is
data, so saving is publishing.
Constructors
- DVPageStore()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
delete(
String route) → Future< void> -
load(
String route) → Future< DVPageDocument?> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
routes(
) → Future< List< String> > -
save(
DVPageDocument document) → Future< void> - Upserts by route and publishes the change to watchers.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
bundled
← List<
String> -
The override stored for
route, if it is already in memory.no getter -
changes
→ Stream<
String> -
Routes whose stored document changed, as it changes.
no setter
- fromBackend ↔ bool
-
True when this app reads deployed pages from its backend.
getter/setter pair
- isPrimed → bool
-
Whether prime has finished, so cached can be trusted for a route it
reports nothing for.
no setter
-
source
↔ Future<
List< Function()?DVPageDocument> > -
Where stored documents are read from instead of
DV.Database, or null.getter/setter pair
Static Methods
-
cached(
String route) → DVPageDocument? -
prime(
) → Future< void> - Reads every stored document into memory.
-
reload(
) → Future< void> - Reads every document again, and tells each route whose document appeared, changed or went.
-
resetCache(
) → void - Drops the in-memory cache and any read in flight. Intended for tests.