Exemplo n.º 1
0
        public static List <Brans> GetCategoriesFromCache()
        {
            var result = WebCache.Get("brans-cache");

            if (result == null)
            {
                BransManager bransManager = new BransManager();
                result = bransManager.List();

                WebCache.Set("brans-cache", result, 20, true);
            }

            return(result);
        }