Exemple #1
0
 /// <summary>
 /// Removes all items from the Cache
 /// </summary>
 public static void Clear()
 {
     TCache.Clear();
 }
Exemple #2
0
 public static bool ContainsCacheEntry(string key)
 {
     return(TCache.ContainsCacheEntry(key));
 }
Exemple #3
0
 public static void ReSetFactor(int cacheFactor)
 {
     TCache.ReSetFactor(cacheFactor);
 }
Exemple #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);
 }
Exemple #5
0
 public static object GetCacheEntryLock(string key)
 {
     return(TCache.GetCacheEntryLock(key));
 }
Exemple #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);
 }
Exemple #7
0
 public static void Insert(string key, object obj, int seconds)
 {
     TCache.Insert(key, obj, seconds);
 }
Exemple #8
0
 public static object Get(string key)
 {
     return(TCache.Get(key));
 }
Exemple #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));
 }
Exemple #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);
 }
Exemple #11
0
 public static void Permanent(string key, object obj, CacheDependency dep)
 {
     TCache.Permanent(key, obj, dep);
 }
Exemple #12
0
 public static void Max(string key, object obj, CacheDependency dep)
 {
     TCache.Max(key, obj, dep);
 }
Exemple #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);
 }
Exemple #14
0
 public static void MicroInsert(string key, object obj, int secondFactor)
 {
     TCache.MicroInsert(key, obj, secondFactor);
 }
Exemple #15
0
 public static void RemoveByPattern(string pattern)
 {
     TCache.RemoveByPattern(pattern);
 }
Exemple #16
0
 public static void RefreshByPattern(string pattern)
 {
     TCache.RefreshByPattern(pattern);
 }
Exemple #17
0
 /// <summary>
 /// Removes the specified key from the cache
 /// </summary>
 /// <param name="key"></param>
 public static void Remove(string key)
 {
     TCache.Remove(key);
 }
Exemple #18
0
 public static bool RefreshByCacheKey(string key)
 {
     return(TCache.RefreshByCacheKey(key));
 }
Exemple #19
0
 public static void Insert(string key, object obj, CacheDependency dep)
 {
     TCache.Insert(key, obj, dep);
 }
Exemple #20
0
 public static bool Update(string key)
 {
     return(TCache.Update(key));
 }
Exemple #21
0
 public static void Insert(string key, object obj, int seconds, CacheItemPriority priority)
 {
     TCache.Insert(key, obj, seconds, priority);
 }
Exemple #22
0
 public static void Insert(string key, object obj, CacheDependency dep, int seconds)
 {
     TCache.Insert(key, obj, dep, seconds);
 }