protected void Add(StaticCache sc) { if (sc == null) { return; } if (_allCache == null) { _allCache = new List <StaticCache>(); } lock (_allCache) { if (timerChecker == null) { timerChecker = new Timer(CheckAction, null, 6 * 1000, 120 * 1000); } if (_allCache.Contains(sc)) { return; } _allCache.Add(sc); } }
internal void Remove(StaticCache staticCache) { if (_allCache == null) { return; } _allCache.Remove(staticCache); }
public void ProcessRequest(System.Web.HttpContext context) { StaticCache.ClearAllCache(); context.Response.Write("清除成功"); }