setCache method

Future<void> setCache(
  1. CacheResponse response
)

设置缓存

Implementation

Future<void> setCache(CacheResponse response) async {
  await cacheOptions?.store?.set(response);
}