Beispiel #1
0
 public static void AddObjectToCacheWithNoSlidingExpiry(string cacheKey, object cacheItem)
 {
     HttpRuntime.Cache.Insert(cacheKey.ToLower(), cacheItem, null,
                              DateTime.Now.AddMinutes(ConfigAccess.GetCacheMinutesFromConfig()), System.Web.Caching.Cache.NoSlidingExpiration);
 }
Beispiel #2
0
 public static void AddObjectToCache(string cacheKey, object cacheItem)
 {
     HttpRuntime.Cache.Insert(cacheKey.ToLower(), cacheItem, null, DateTime.MaxValue, TimeSpan.FromMinutes(
                                  ConfigAccess.GetCacheMinutesFromConfig()));
 }