Webiant Logo Webiant Logo
  1. No results found.

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

AddressCacheEventConsumer.cs

using Nop.Core.Domain.Common;
using Nop.Services.Caching;
using Nop.Services.Customers;

namespace Nop.Services.Common.Caching;

/// 
/// Represents a address cache event consumer
/// 
public partial class AddressCacheEventConsumer : CacheEventConsumer
{ /// /// Clear cache by entity event type /// /// Entity /// Entity event type /// A task that represents the asynchronous operation protected override async Task ClearCacheAsync(Address entity, EntityEventType entityEventType) { switch (entityEventType) { case EntityEventType.Update: case EntityEventType.Delete: await RemoveByPrefixAsync(NopCustomerServicesDefaults.CustomerAddressesPrefix); break; } } }