private void Add(string key, DateTime lastModifiedUtc, CachedData cachedData) { string cacheFilePath = GetCacheFilePath(key); try { _serializer(cachedData, cacheFilePath); C1File.SetCreationTimeUtc(cacheFilePath, lastModifiedUtc); } catch (Exception ex) { Log.LogWarning(LogTitle, "Failed to add data to cache '{0}'. Key: '{1}'", _cacheName, key); Log.LogWarning(LogTitle, ex); } }