getListFromCache<T extends YustDoc> method
Future<List<T> >
getListFromCache<T extends YustDoc>(
- YustDocSetup<
T> docSetup, { - List<
YustFilter> ? filters, - List<
YustOrderBy> ? orderBy, - int? limit,
override
Returns YustDocs from the cache, if available, otherwise from the server. Be careful: The cached documents may not be up to date!
docSetup
is used to read the collection path.
filters
each entry represents a condition that has to be met.
All of those conditions must be true for each returned entry.
orderBy
orders the returned records.
Multiple of those entries can be repeated.
limit
can be passed to only get at most n documents.
Implementation
@override
Future<List<T>> getListFromCache<T extends YustDoc>(
YustDocSetup<T> docSetup, {
List<YustFilter>? filters,
List<YustOrderBy>? orderBy,
int? limit,
}) {
return getListFromDB(docSetup, filters: filters, orderBy: orderBy);
}