/// <summary> /// Removes cached item by cachekey's prefix. /// </summary> /// <param name="prefix">Prefix.</param> public override void BaseRemoveByPrefix(string prefix) { ArgumentCheck.NotNullOrWhiteSpace(prefix, nameof(prefix)); var count = _cache.RemoveByPrefix(prefix); if (_options.EnableLogging) { _logger?.LogInformation($"RemoveByPrefix : prefix = {prefix} , count = {count}"); } }
/// <summary> /// Removes cached item by cachekey's prefix. /// </summary> /// <param name="prefix">Prefix.</param> public override void BaseRemoveByPrefix(string prefix) { ArgumentCheck.NotNullOrWhiteSpace(prefix, nameof(prefix)); var count = _cache.RemoveByPrefix(prefix); Logger?.LogDebug("RemoveByPrefix : prefix = {0} , count = {1}", prefix, count); }