writeCache static method
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 (_) {}
}