示例#1
0
        /// <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();
        }
示例#2
0
 public void ClearAll()
 {
     _logger.WriteInfoMessage("Clearing the cache");
     try
     {
         _client.FlushAll();
     }
     catch (Exception ex)
     {
         _logger.WriteErrorMessage("Error flushing the cache:" + ex.Message);
     }
 }
示例#3
0
 public IActionResult FlushAll()
 {
     try
     {
         _memcachedClient.FlushAll();
         return(NoContent());
     }
     catch (Exception ex)
     {
         return(this.ApiErrorResult(ex, _logger));
     }
 }
示例#4
0
 public void FlushAll()
 {
     _memcachedClient.FlushAll();
 }
示例#5
0
 /// <summary>
 /// 清空所有缓存
 /// </summary>
 public void Flush()
 {
     WriteLog($"Flush");
     // 不立即刷新内存,只会导致所有项目过期
     _memcachedClient.FlushAll();
 }
 /// <summary>
 /// Clears all stored objects from memory.
 /// </summary>
 public static void ClearAll()
 {
     Cache.FlushAll();
 }
示例#7
0
 public void FlushAll()
 {
     Client.FlushAll();
 }
示例#8
0
        public void FlushAll()
        {
            IMemcachedClient client = this.GetMemcachedClient();

            client.FlushAll();
        }
示例#9
0
 /// <summary>
 /// Flush this instance.
 /// </summary>
 public void Flush()
 {
     //not flush memory at once, just causes all items to expire
     _memcachedClient.FlushAll();
 }
示例#10
0
 public void Clear()
 {
     _client.FlushAll();
     SyncKeys(new HashSet <string>());
 }
示例#11
0
 public void FlushAll()
 {
     _client.FlushAll();
 }