public ActionResult RemoveLocalCache(string[] cacheKeys, bool os) { if (cacheKeys != null) { foreach (string key in cacheKeys) { _cache.RemoveLocal(key); } } return(RedirectToAction("Index", new RouteValueDictionary(new { os }))); }
public void Remove(string key) { try { Cache.RemoveLocal(key); } catch (Exception ex) { Logger.Error(ex.Message, ex); } }
/// <summary> /// Default clears Episerver cache manager cache. /// </summary> public void ClearCache() { //CacheManager.Clear(); //this has been deprecated var cacheKeys = GetCacheKeys(); foreach (var key in cacheKeys) { _synchronizedObjectInstanceCache.RemoveLocal(key); _synchronizedObjectInstanceCache.RemoveRemote(key); } }
public void Remove(string key) { try { _syncronizedObjectInstanceCache.RemoveRemote(key); _syncronizedObjectInstanceCache.RemoveLocal(key); _keyCache.Remove(key); } catch (Exception ex) { } }
public void RemoveLocal(string key) => _defaultCache.RemoveLocal(key);