get method

  1. @override
Future<Entity<D>?> get(
  1. P params
)
override

Returns data if cached params Caching key

Implementation

@override
Future<Entity<D>?> get(P params) async {
  final fromCache = await _delegate.get(params);
  if (null == fromCache || params.cacheKey != fromCache.data.cacheKey) {
    return null;
  } else {
    return fromCache.map((it) => it.data);
  }
}