Beispiel #1
0
 /// <summary>
 /// Removes all items from the Cache
 /// </summary>
 public static void Clear()
 {
     TCache.Clear();
 }
Beispiel #2
0
 public static bool ContainsCacheEntry(string key)
 {
     return(TCache.ContainsCacheEntry(key));
 }
Beispiel #3
0
 public static void ReSetFactor(int cacheFactor)
 {
     TCache.ReSetFactor(cacheFactor);
 }
Beispiel #4
0
 public static void Insert(string key, object obj, CacheDependency dep, int seconds, CacheItemPriority priority, CacheItemRemovedCallback onRemoveCallback)
 {
     TCache.Insert(key, obj, dep, seconds, priority, onRemoveCallback);
 }
Beispiel #5
0
 public static object GetCacheEntryLock(string key)
 {
     return(TCache.GetCacheEntryLock(key));
 }
Beispiel #6
0
 /// <summary>
 /// Insert the current "obj" into the cache.
 /// </summary>
 /// <param name="key"></param>
 /// <param name="obj"></param>
 public static void Insert(string key, object obj)
 {
     TCache.Insert(key, obj, int.MaxValue);
 }
Beispiel #7
0
 public static void Insert(string key, object obj, int seconds)
 {
     TCache.Insert(key, obj, seconds);
 }
Beispiel #8
0
 public static object Get(string key)
 {
     return(TCache.Get(key));
 }
Beispiel #9
0
 /// <summary>
 /// Return int of seconds * SecondFactor
 /// </summary>
 public static int SecondFactorCalculate(int seconds)
 {
     // Insert method below takes integer seconds, so we have to round any fractional values
     return(TCache.SecondFactorCalculate(seconds));
 }
Beispiel #10
0
 /// <summary>
 /// Insert an item into the cache for the Maximum allowed time
 /// </summary>
 /// <param name="key"></param>
 /// <param name="obj"></param>
 public static void Permanent(string key, object obj)
 {
     TCache.Permanent(key, obj);
 }
Beispiel #11
0
 public static void Permanent(string key, object obj, CacheDependency dep)
 {
     TCache.Permanent(key, obj, dep);
 }
Beispiel #12
0
 public static void Max(string key, object obj, CacheDependency dep)
 {
     TCache.Max(key, obj, dep);
 }
Beispiel #13
0
 /// <summary>
 /// Insert an item into the cache for the Maximum allowed time
 /// </summary>
 /// <param name="key"></param>
 /// <param name="obj"></param>
 public static void Max(string key, object obj)
 {
     TCache.Max(key, obj);
 }
Beispiel #14
0
 public static void MicroInsert(string key, object obj, int secondFactor)
 {
     TCache.MicroInsert(key, obj, secondFactor);
 }
Beispiel #15
0
 public static void RemoveByPattern(string pattern)
 {
     TCache.RemoveByPattern(pattern);
 }
Beispiel #16
0
 public static void RefreshByPattern(string pattern)
 {
     TCache.RefreshByPattern(pattern);
 }
Beispiel #17
0
 /// <summary>
 /// Removes the specified key from the cache
 /// </summary>
 /// <param name="key"></param>
 public static void Remove(string key)
 {
     TCache.Remove(key);
 }
Beispiel #18
0
 public static bool RefreshByCacheKey(string key)
 {
     return(TCache.RefreshByCacheKey(key));
 }
Beispiel #19
0
 public static void Insert(string key, object obj, CacheDependency dep)
 {
     TCache.Insert(key, obj, dep);
 }
Beispiel #20
0
 public static bool Update(string key)
 {
     return(TCache.Update(key));
 }
Beispiel #21
0
 public static void Insert(string key, object obj, int seconds, CacheItemPriority priority)
 {
     TCache.Insert(key, obj, seconds, priority);
 }
Beispiel #22
0
 public static void Insert(string key, object obj, CacheDependency dep, int seconds)
 {
     TCache.Insert(key, obj, dep, seconds);
 }