Exemplo n.º 1
0
 public static object Get(string key)
 {
     if (cache != null)
     {
         return(cache.GetData(key));
     }
     else
     {
         return(null);
     }
 }
Exemplo n.º 2
0
        public static T Get <T>(string key) where T : class
        {
            if (!_cache.Contains(key))
            {
                return(null);
            }

            return(_cache.GetData(key) as T);
        }