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