public async Task <bool> DeleteAsync() { var result = await _dictionaryStore.DeleteAsync(SettingsKey); _memoryCache.Remove(SettingsKey); return(result); }
public async Task <bool> DeleteAsync() { var result = await _dictionaryStore.DeleteAsync(Key); if (result) { // Expire cache _cacheManager.CancelTokens(this.GetType(), Key); } return(result); }
public async Task <bool> DeleteAsync() { var result = await _dictionaryStore.DeleteAsync(SettingsKey); if (result) { _cacheManager.CancelTokens(this.GetType()); if (_logger.IsEnabled(LogLevel.Information)) { _logger.LogInformation("Facebook settings deleted"); } } return(result); }