コード例 #1
0
        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;
        }
コード例 #2
0
 public InMemoryCacheEntry(CacheEntry cacheEntry)
 {
     CacheEntry = cacheEntry;
     Responses = new Dictionary<string, CacheContent>();
 }