writeCache static method

void writeCache(
  1. UpdateCache cache
)

Implementation

static void writeCache(UpdateCache cache) {
  try {
    final file = getCacheFile();
    if (!file.parent.existsSync()) {
      file.parent.createSync(recursive: true);
    }
    file.writeAsStringSync(jsonEncode(cache.toJson()));
  } catch (_) {}
}