Esempio n. 1
0
        public async Task UpdateOrCreateCacheEntry(PodcastId id, CacheInfo entry)
        {
            FileModel existingEnry;
            if (!_memCache.TryGetValue(id, out existingEnry))
            {
                var fileModel = new FileModel(id, entry);
                _memCache.Add(id, fileModel);
                _cachedFiles.OnNext(fileModel);
            }
            else
            {
                existingEnry.UpdateCachingState(entry);
            }

            await Cache.Local.InsertObject(id.Url, entry);
        }
Esempio n. 2
0
 public void UpdateCachingState(CacheInfo entry)
 {
     //State
 }