/// <summary>
 /// Recupera o item pela chave informada.
 /// </summary>
 /// <param name="key"></param>
 /// <returns></returns>
 public override object Get(object key)
 {
     try
     {
         return(_internalStore.Get(_itemDict[key], base.CacheContext));
     }
     catch (Exception exception)
     {
         Colosoft.Logging.Trace.Error("FileSystemStorageProvider.Get()".GetFormatter(), exception.GetFormatter());
         return(null);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Provides implementation of Get method of the ICacheStorage interface.
 /// Get an object from the store, specified by the passed in key.
 /// </summary>
 /// <param name="key">key</param>
 /// <returns>object</returns>
 public override object Get(object key)
 {
     try
     {
         return((object)_internalStore.Get(_itemDict[key], CacheContext));
     }
     catch (Exception e)
     {
         Trace.error("FileSystemStorageProvider.Get()", e.ToString());
         return(null);
     }
 }