Try your search with a different keyword or use * as a wildcard.
using Nop.Core.Domain.Discounts;
using Nop.Services.Caching;
namespace Nop.Services.Discounts.Caching;
///
/// Represents a discount cache event consumer
///
public partial class DiscountCacheEventConsumer : CacheEventConsumer
{
///
/// Clear cache data
///
/// Entity
/// A task that represents the asynchronous operation
protected override async Task ClearCacheAsync(Discount entity)
{
await RemoveAsync(NopDiscountDefaults.DiscountRequirementsByDiscountCacheKey, entity);
await RemoveByPrefixAsync(NopDiscountDefaults.CategoryIdsByDiscountPrefix, entity);
await RemoveByPrefixAsync(NopDiscountDefaults.ManufacturerIdsByDiscountPrefix, entity);
await RemoveByPrefixAsync(NopDiscountDefaults.AppliedDiscountsCachePrefix);
}
}