Exemple #1
0
        /// <summary>
        /// Flush All Cached Item.
        /// </summary>
        public override void BaseFlush()
        {
            Logger?.LogDebug("Memcached -- Flush");

            //not flush memory at once, just causes all items to expire
            _memcachedClient.FlushAll();
        }
        /// <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();
        }