remember<T> method
The cached value, or run compute and store the result.
List<dynamic> posts = await Cache().remember('posts',
Duration(minutes: 5), () => Post().all());
Implementation
Future<T> remember<T>(
String key,
Duration? duration,
FutureOr<T> Function() compute,
) {
return repository.remember<T>(key, duration, compute);
}