public async Task<CacheContent> GetContentAsync(CacheEntry cacheEntry, string secondaryKey) { var inMemoryCacheEntry = _responseCache[cacheEntry.Key]; if (inMemoryCacheEntry.Responses.ContainsKey(secondaryKey)) { return await CloneAsync(inMemoryCacheEntry.Responses[secondaryKey]); } return null; }
public InMemoryCacheEntry(CacheEntry cacheEntry) { CacheEntry = cacheEntry; Responses = new Dictionary<string, CacheContent>(); }