public bool TryResolveFromCache(string cachekey, out CachedPageContentOutput element)
        {
            element = null;

            var cacheObject = _cache.Get <CachedPageContentOutput>(cachekey);

            if (cacheObject == null)
            {
                return(false);
            }

            element = (CachedPageContentOutput)cacheObject;
            return(true);
        }
 public void AddToCache(string cacheKey, CachedPageContentOutput incomingCache)
 {
     _cache.Add(cacheKey, incomingCache, DateTime.Now.AddMinutes(5));
 }