AsyncOrCacheStrategy class
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
-
applyStrategy<R, T>(AsyncBloc<T> asyncBloc, String key, SerializerBloc<R, T> serializerBloc, int ttlValue, Storage storage)
→ Future<R?>
-
override
-
beforeExecute<R, T>(StrategyBuilder<R, T> builder)
→ dynamic
-
override
-
fetchCacheData<R, T>(String key, SerializerBloc<R, T> serializerBloc, Storage storage, {bool keepExpiredCache = false, int ttlValue = defaultTTLValue})
→ Future<R?>
-
inherited
-
invokeAsync<T>(AsyncBloc<T> asyncBloc, String key, Storage storage)
→ Future<T>
-
inherited
-
logCacheData(String key, CacheWrapper cache, {required Storage storage, required int ttlValue})
→ void
-
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
read<T>(String key, Storage storage)
→ Future<CacheWrapper<T?>?>
-
inherited
-
store<T>(String key, T value, Storage storage)
→ Future
-
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
write<T>(T value)
→ CacheWrapper<T>
-
inherited