public void Put(UrlRequest request, Response response)
        {
            var cacheItem = new MongoCacheItem(request.CacheKey, request.Url, response);

            _collection.Insert(cacheItem);
        }
 public void Put(UrlRequest request, Response response)
 {
     var cacheItem = new MongoCacheItem(request.CacheKey, request.Url, response);
     _collection.Insert(cacheItem);
 }
        public Response Get(UrlRequest request)
        {
            MongoCacheItem cacheItem = _collection.FindOneById(request.CacheKey);

            return(cacheItem == null ? null : cacheItem.Response);
        }