set method

  1. @override
Future<void> set (
  1. CacheResponse response
)
override

Implementation

@override
Future<void> set(CacheResponse response) async {

  await this.delete(response.key);

  final withPriority = _responses.putIfAbsent(response.priority, () => <CacheResponse>[]);
  withPriority.add(response);
}