//[CacheOutput(ClientTimeSpan = 100, ServerTimeSpan = 100)]
        public IHttpActionResult GetFilterResource([FromUri] string filter)
        {
            List <Resource> filtRes = db.Resources.Where(x => x.TagsCompressed.Contains(filter)).ToList();

            if (filtRes != null)
            {
                //var cache = new CacheFactory();
                var newCache = CacheFactory.GetCacheProvider("redis");

                if (newCache.IsInCache(filter))
                {
                    newCache.Set(filter, filtRes, TimeSpan.FromMinutes(5));
                    return(Ok(newCache.Get <List <Resource> >(filter)));
                }

                newCache.Set(filter, filtRes, TimeSpan.FromMinutes(5));
                return(Ok(filtRes));
            }
            return(NotFound());
        }