private Action <string, DescendantIdsResponse> AddDescendantToCache()
 {
     return((id, content) =>
     {
         cache.Add(CacheSettings.GetDescendantsKey(id), content);
     });
 }
 private Action <string, DescendantIdsResponse> AddDescendantAndUrlIndexToCache(string url)
 {
     return((id, content) =>
     {
         cache.Add(CacheSettings.GetDescendantsKey(id), content);
         cache.Add(url, id);
     });
 }
        private TryFunc <string, DescendantIdsResponse> DescendantIdCacheSearch()
        {
            return((string id, out DescendantIdsResponse value) =>
            {
                value = null;
                DescendantIdsResponse content;
                if (!cache.TryGet(CacheSettings.GetDescendantsKey(id), out content))
                {
                    return false;
                }

                value = content;
                return true;
            });
        }