Webiant Logo Webiant Logo
  1. No results found.

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

StateProvinceCacheEventConsumer.cs

using Nop.Core.Caching;
using Nop.Core.Domain.Directory;
using Nop.Services.Caching;

namespace Nop.Services.Directory.Caching;

/// 
/// Represents a state province cache event consumer
/// 
public partial class StateProvinceCacheEventConsumer : CacheEventConsumer
{
    /// 
    /// Clear cache by entity event type
    /// 
    /// Entity
    /// Entity event type
    /// A task that represents the asynchronous operation
    protected override async Task ClearCacheAsync(StateProvince entity, EntityEventType entityEventType)
    {
        await RemoveByPrefixAsync(NopEntityCacheDefaults.Prefix);
    }
}