loadCache<T extends Document<T> > method
Implementation
@override
Future<T?> loadCache<T extends Document<T>>(Document<T> document) async {
try {
final cache = await _load<T>(document, Source.cache);
if (cache != null) {
return cache as T;
}
} on Exception catch (_) {
// nothing
}
final document0 = await _load<T>(document, Source.serverAndCache);
return document0 != null ? document0 as T : null;
}