CacheStore class abstract
Definition of store
Constructors
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
-
clean(
{CachePriority priorityOrBelow = CachePriority.high, bool staleOnly = false}) → Future< void> -
Removes all keys from store.
priorityOrBelow
flag will remove keys only for the priority or below.staleOnly
flag will remove keys only if expired (from maxStale). -
close(
) → Future< void> - Releases underlying resources (if any)
-
delete(
String key, {bool staleOnly = false}) → Future< void> -
Removes the given key from store.
staleOnly
flag will remove it only if the key is expired (from maxStale). -
deleteFromPath(
RegExp pathPattern, {Map< String, String?> ? queryParams}) → Future<void> - Removes keys from the given filters.
-
exists(
String key) → Future< bool> - Checks if key exists in store
-
get(
String key) → Future< CacheResponse?> - Retrieves cached response from the given key.
-
getFromPath(
RegExp pathPattern, {Map< String, String?> ? queryParams}) → Future<List< CacheResponse> > - Retrieves cached responses from a path pattern.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pathExists(
String url, RegExp pathPattern, {Map< String, String?> ? queryParams}) → bool -
Checks if the given url matches with the given filters.
url
must conform to uri parsing. -
set(
CacheResponse response) → Future< void> - Pushes response in store
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited