/// <summary> /// Removes all items from the Cache /// </summary> public static void Clear() { TCache.Clear(); }
public static bool ContainsCacheEntry(string key) { return(TCache.ContainsCacheEntry(key)); }
public static void ReSetFactor(int cacheFactor) { TCache.ReSetFactor(cacheFactor); }
public static void Insert(string key, object obj, CacheDependency dep, int seconds, CacheItemPriority priority, CacheItemRemovedCallback onRemoveCallback) { TCache.Insert(key, obj, dep, seconds, priority, onRemoveCallback); }
public static object GetCacheEntryLock(string key) { return(TCache.GetCacheEntryLock(key)); }
/// <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); }
public static void Insert(string key, object obj, int seconds) { TCache.Insert(key, obj, seconds); }
public static object Get(string key) { return(TCache.Get(key)); }
/// <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)); }
/// <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); }
public static void Permanent(string key, object obj, CacheDependency dep) { TCache.Permanent(key, obj, dep); }
public static void Max(string key, object obj, CacheDependency dep) { TCache.Max(key, obj, dep); }
/// <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); }
public static void MicroInsert(string key, object obj, int secondFactor) { TCache.MicroInsert(key, obj, secondFactor); }
public static void RemoveByPattern(string pattern) { TCache.RemoveByPattern(pattern); }
public static void RefreshByPattern(string pattern) { TCache.RefreshByPattern(pattern); }
/// <summary> /// Removes the specified key from the cache /// </summary> /// <param name="key"></param> public static void Remove(string key) { TCache.Remove(key); }
public static bool RefreshByCacheKey(string key) { return(TCache.RefreshByCacheKey(key)); }
public static void Insert(string key, object obj, CacheDependency dep) { TCache.Insert(key, obj, dep); }
public static bool Update(string key) { return(TCache.Update(key)); }
public static void Insert(string key, object obj, int seconds, CacheItemPriority priority) { TCache.Insert(key, obj, seconds, priority); }
public static void Insert(string key, object obj, CacheDependency dep, int seconds) { TCache.Insert(key, obj, dep, seconds); }