public async Task SaveSheets(IList <I18nSheet> sheets) { await _i18nLocalStore.SaveSheets(sheets); foreach (var sheet in sheets) { var cacheKey = GetCacheKey(sheet.SpreadsheetId, sheet.SheetName); _i18nCache.Set(cacheKey, sheet); } }
public async Task ReloadLocalStore() { var newSheets = await _i18nGoogleClient.GetSheets(_i18nOptions.SpreadsheetId); await _i18nLocalStore.SaveSheets(newSheets); }