Cache class

Web (HTML) implementation of BaseCache using IndexedDB.

Inheritance

Constructors

Cache.new()
Initializes the IndexedDB database connection.

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 the key.
override
toString() String
A string representation of this object.
inherited
updateKey(String key, String newKey) Future<void>
Renames an existing cache entry from key to newKey.
override

Operators

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