Webiant Logo Webiant Logo
  1. No results found.

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

NopTopicDefaults.cs

using Nop.Core.Caching;
using Nop.Core.Domain.Topics;

namespace Nop.Services.Topics;

/// 
/// Represents default values related to topic services
/// 
public static partial class NopTopicDefaults
{
    #region Caching defaults

    /// 
    /// Gets a key for caching
    /// 
    /// 
    /// {0} : store ID
    /// {1} : show hidden?
    /// {2} : include in top menu?
    /// 
    public static CacheKey TopicsAllCacheKey => new("Nop.topic.all.{0}-{1}-{2}", NopEntityCacheDefaults.AllPrefix);

    /// 
    /// Gets a key for caching
    /// 
    /// 
    /// {0} : store ID
    /// {1} : show hidden?
    /// {2} : include in top menu?
    /// {3} : customer role IDs hash
    /// 
    public static CacheKey TopicsAllWithACLCacheKey => new("Nop.topic.all.withacl.{0}-{1}-{2}-{3}", NopEntityCacheDefaults.AllPrefix);

    /// 
    /// Gets a key for caching
    /// 
    /// 
    /// {0} : topic system name
    /// {1} : store id
    /// {2} : customer roles Ids hash
    /// 
    public static CacheKey TopicBySystemNameCacheKey => new("Nop.topic.bysystemname.{0}-{1}-{2}", TopicBySystemNamePrefix);

    /// 
    /// Gets a key pattern to clear cache
    /// 
    /// 
    /// {0} : topic system name
    /// 
    public static string TopicBySystemNamePrefix => "Nop.topic.bysystemname.{0}";

    #endregion
}