using Nop.Core.Domain.Customers; using Nop.Services.Caching; namespace Nop.Plugin.Tax.Avalara.Services.Caching; /// /// Represents a customer cache event consumer /// public class CustomerCacheEventConsumer : CacheEventConsumer { #region Methods /// /// Clear cache data /// /// Entity /// A task that represents the asynchronous operation protected override async Task ClearCacheAsync(Customer entity) { await RemoveByPrefixAsync(AvalaraTaxDefaults.TaxRateCacheKeyByCustomerPrefix, entity); } #endregion }