Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

CustomerCacheEventConsumer.cs

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
}