/// <summary> /// Insert or replace items to cache /// </summary> /// <param name="Items"></param> /// <returns></returns> public Task InsertOrReplaceItemsAsync(IEnumerable <IMovieItem> Items) { return(Task.Factory.StartNew(() => { try { foreach (var item in Items) { _movieDb.InsertOrReplace(item.ToMovieDbItem()); } } catch (Exception e) { System.Diagnostics.Debug.WriteLine("Cache Exception:" + e.Message); } })); }