Esempio 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();
        }
Esempio 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);
     }
 }
Esempio n. 3
0
 public IActionResult FlushAll()
 {
     try
     {
         _memcachedClient.FlushAll();
         return(NoContent());
     }
     catch (Exception ex)
     {
         return(this.ApiErrorResult(ex, _logger));
     }
 }
Esempio n. 4
0
 public void FlushAll()
 {
     _memcachedClient.FlushAll();
 }
Esempio n. 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();
 }
Esempio n. 7
0
 public void FlushAll()
 {
     Client.FlushAll();
 }
Esempio n. 8
0
        public void FlushAll()
        {
            IMemcachedClient client = this.GetMemcachedClient();

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