private Action <string, RawContentResponse> AddContentToCache()
 {
     return((id, content) =>
     {
         cache.Add(CacheSettings.GetContentKey(id), content);
     });
 }
 private Action <string, RawContentResponse> AddContentAndUrlIndexToCache(string url)
 {
     return((id, content) =>
     {
         cache.Add(CacheSettings.GetContentKey(id), content);
         cache.Add(url, id);
     });
 }
        private TryFunc <string, RawContentResponse> ContentIdCacheSearch()
        {
            return((string id, out RawContentResponse value) =>
            {
                value = null;
                RawContentResponse content;
                if (!cache.TryGet(CacheSettings.GetContentKey(id), out content))
                {
                    return false;
                }

                value = content;
                return true;
            });
        }