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

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