Webiant Logo Webiant Logo
  1. No results found.

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

CountryCacheEventConsumer.cs

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

namespace Nop.Services.Directory.Caching;

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