QueryCache class

Cache for storing Query, InfiniteQuery and Mutation objects and triggering events when they are added or removed

The cache can't be modified from outside directly

Constructors

QueryCache({required Duration cacheDuration})

Properties

cacheDuration Duration
final
events Stream<QueryCacheEvent>
no setter
hashCode int
The hash code for this object.
no setterinherited
infiniteQueries → UnmodifiableSetView<InfiniteQuery>
no setter
infiniteQueryHiveBox → LazyBox
no setter
mutations → UnmodifiableSetView<Mutation>
no setter
queries → UnmodifiableSetView<Query>
no setter
queryHiveBox → LazyBox
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addInfiniteQuery(InfiniteQuery query) → void
addMutation(Mutation mutation) → void
addQuery(Query query) → void
clear() → void
Clears everything from cache
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeInfiniteQuery(InfiniteQuery query) → void
removeMutation(Mutation mutation) → void
removeQuery(Query query) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited