Example #1
0
 public static TObject GetCachedObject <TObject>(CacheItemArgs cacheItemArgs, CacheItemExpiredCallback cacheItemExpired, bool saveInDictionary)
 {
     return(DataCache.GetCachedData <TObject>(cacheItemArgs, cacheItemExpired, saveInDictionary));
 }
Example #2
0
 /// -----------------------------------------------------------------------------
 /// <summary>
 /// GetCachedObject gets an object from the Cache
 /// </summary>
 /// <typeparam name="TObject">The type of th object to fetch</typeparam>
 /// <param name="cacheItemArgs">A CacheItemArgs object that provides parameters to manage the
 /// cache AND to fetch the item if the cache has expired</param>
 /// <param name="cacheItemExpired">A CacheItemExpiredCallback delegate that is used to repopulate
 /// the cache if the item has expired</param>
 /// -----------------------------------------------------------------------------
 public static TObject GetCachedObject <TObject>(CacheItemArgs cacheItemArgs, CacheItemExpiredCallback cacheItemExpired)
 {
     return(DataCache.GetCachedData <TObject>(cacheItemArgs, cacheItemExpired));
 }