Cache class
Default BaseCache implementation for unsupported platforms.
All methods throw UnimplementedError.
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
-
contains(
String key) → Future< bool> -
Checks if the cache contains an entry for the given
key
.override -
delete(
String key) → Future< void> -
Removes the entry associated with the
key
from the cache.override -
dispose(
) → void -
Releases any resources held by the cache instance.
override
-
get(
String key) → Future< Uint8List> -
Retrieves the value associated with the
key
.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set(
String key, Uint8List value) → Future< void> -
Stores the given
value
associated with thekey
.override -
toString(
) → String -
A string representation of this object.
inherited
-
updateKey(
String key, String newKey) → Future< void> -
Renames an existing cache entry from
key
tonewKey
.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited