RepositoryCacheStorage class abstract

An abstract storage to cache data from repositories. It is used by the Repository class and wraps an implementation of a cache storage.

Implementers

Constructors

RepositoryCacheStorage()
An abstract storage to cache data from repositories. It is used by the Repository class and wraps an implementation of a cache storage.
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>
Clears the cache.
delete({required String key}) Future<void>
Delete a value from the cache.
hashKey(String key) String
Hashes a key to be used as a cache key.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read({required String key}) Future<String?>
Read a value from the cache.
toString() String
A string representation of this object.
inherited
write({required String key, required String value}) Future<void>
Write a value to the cache.

Operators

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