/// <summary> /// Flush All Cached Item. /// </summary> public void Flush() { if (_options.EnableLogging) { _logger?.LogInformation("Memcached -- Flush"); } //not flush memory at once, just causes all items to expire _memcachedClient.FlushAll(); }
public void ClearAll() { _logger.WriteInfoMessage("Clearing the cache"); try { _client.FlushAll(); } catch (Exception ex) { _logger.WriteErrorMessage("Error flushing the cache:" + ex.Message); } }
public IActionResult FlushAll() { try { _memcachedClient.FlushAll(); return(NoContent()); } catch (Exception ex) { return(this.ApiErrorResult(ex, _logger)); } }
public void FlushAll() { _memcachedClient.FlushAll(); }
/// <summary> /// 清空所有缓存 /// </summary> public void Flush() { WriteLog($"Flush"); // 不立即刷新内存,只会导致所有项目过期 _memcachedClient.FlushAll(); }
/// <summary> /// Clears all stored objects from memory. /// </summary> public static void ClearAll() { Cache.FlushAll(); }
public void FlushAll() { Client.FlushAll(); }
public void FlushAll() { IMemcachedClient client = this.GetMemcachedClient(); client.FlushAll(); }
/// <summary> /// Flush this instance. /// </summary> public void Flush() { //not flush memory at once, just causes all items to expire _memcachedClient.FlushAll(); }
public void Clear() { _client.FlushAll(); SyncKeys(new HashSet <string>()); }
public void FlushAll() { _client.FlushAll(); }