get method
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);
}
}