CacheProxy class
Provides an interface for interacting with the Cache from within UpdateCacheHandlers.
Sets the _optimisticRequest
property based on the originating request.
Constructors
- CacheProxy(Cache cache, [OperationRequest? optimisticRequest])
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
-
clear(
) → void -
evict(
String entityId, {String? fieldName, Map< String, dynamic> args = const {}}) → void -
gc(
) → Set< String> -
identify<
TData> (TData data) → String? -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readFragment<
TData, TVars> (FragmentRequest< TData, TVars> request, {bool? optimistic}) → TData? -
readQuery<
TData, TVars> (OperationRequest< TData, TVars> request, {bool? optimistic}) → TData? -
release(
String entityId) → void -
retain(
String entityId) → void -
toString(
) → String -
A string representation of this object.
inherited
-
writeFragment<
TData, TVars> (FragmentRequest< TData, TVars> request, TData data) → void -
writeQuery<
TData, TVars> (OperationRequest< TData, TVars> request, TData data) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited