QueryCache class final
Storage and event boundary for query state machines.
Constructors
Properties
Methods
-
add(
Query query) → void -
Adds
queryunless its key is already cached. -
clear(
) → void - Removes every cached query.
-
get<
T> (String canonicalKey) → Query< T> ? -
Returns a cached query when its data type matches
T. -
getAny(
String canonicalKey) → Query? - Returns a cached query without checking its data type.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notify(
QueryCacheEvent event) → void -
Sends
eventto current subscribers. -
remove(
Query query) → void -
Removes and destroys
querywhen it is the cached instance. -
subscribe(
void listener(QueryCacheEvent event)) → QueryDispose - Subscribes to cache events.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited