public async Task <List <string> > SearchGifs(string searchTerm) { if (cache.ContainsKey(searchTerm)) { return(cache[searchTerm]); } var data = await Giphy.FetchSearchData(searchTerm); List <string> urlList = new List <string>(); foreach (var item in data.Data) { urlList.Add(item.Url); } cache.TryAdd(searchTerm, urlList); return(urlList); }