public static bool RefreshByCacheKey(string key) { if (!CacheLockbox.ContainsCacheEntry(key)) { return(false); } ThreadPool.QueueUserWorkItem(delegate(object o) { Update(o.ToString()); }, key); return(true); }
public static bool Update(string key) { if (!CacheLockbox.ContainsCacheEntry(key)) { return(false); } lock (CacheLockbox.GetInternalLock(key)) { InternalCallback(key); } return(true); }
public static bool ContainsCacheEntry(string key) { return(CacheLockbox.ContainsCacheEntry(key)); }