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