get method

  1. @override
Future<CacheResponse?> get(
  1. String key
)
override

Retrieves cached response from the given key.

Implementation

@override
Future<CacheResponse?> get(String key) async {
  final resp = await primary.get(key);
  if (resp != null) return resp;

  return secondary.get(key);
}