get method

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

Retrieves cached response from the given key.

Implementation

@override
Future<CacheResponse?> get(String key) async {
  final box = await _openBox();
  return box.get(key);
}