upsert method
- CacheInfo? info
 
Creates, updates or deletes the provided info in the database.
Implementation
Future<void> upsert(CacheInfo? info) async {
  await safe((db) async {
    if (info == null) {
      await db.delete(db.cacheSummary).go();
    } else {
      await db
          .into(db.cacheSummary)
          .insert(info.toDb(), mode: InsertMode.insertOrReplace);
    }
  });
}