BaseCache class abstract
Abstract base class defining the interface for a platform-specific cache.
Implementations handle the actual storage mechanism (e.g., file system, IndexedDB).
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
. -
delete(
String key) → Future< void> -
Removes the entry associated with the
key
from the cache. -
dispose(
) → void - Releases any resources held by the cache instance.
-
get(
String key) → Future< Uint8List> -
Retrieves the value associated with the
key
. -
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
. -
toString(
) → String -
A string representation of this object.
inherited
-
updateKey(
String key, String newKey) → Future< void> -
Renames an existing cache entry from
key
tonewKey
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited