JsonCacheTry class final
A JsonCache decorator that provides improved information about cache-related failures by throwing JsonCacheException.
- Implemented types
Constructors
- JsonCacheTry(JsonCache wrapped)
-
Sets
wrapped
as the instance to which this object will forward all method calls.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
-
clear(
) → Future< void> -
Frees up storage space by clearing cached data.
override
-
contains(
String key) → Future< bool> -
Checks for cached data at
key
.override -
keys(
) → Future< UnmodifiableListView< String> > -
The cache keys.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refresh(
String key, Map< String, dynamic> value) → Future<void> -
Updates the data located at
key
.override -
remove(
String key) → Future< void> -
Removes the cached data located at
key
.override -
toString(
) → String -
A string representation of this object.
inherited
-
value(
String key) → Future< Map< String, dynamic> ?> -
Retrieves the value located at
key
ornull
if there is no data.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited