DataCacheService class
Service that manages data caching and refresh
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
cacheData(
String cacheKey, List data, {Duration? duration, Map< String, dynamic> ? metadata}) → Future<void> - Saves data to the cache
-
clearAllCache(
) → Future< void> - Clears the whole cache
-
getCachedData(
String cacheKey) → Future< CacheResult?> - Reads data from the cache
-
getCacheInfo(
) → Future< CacheInfo> - Returns information about the cache
-
init(
) → Future< void> - Initializes the service
-
removeCachedData(
String cacheKey) → Future< void> - Removes specific data from the cache