using Nop.Core.Caching;

namespace Nop.Services.Blogs;

/// <summary>
/// Represents default values related to blogs services
/// </summary>
public static partial class NopBlogsDefaults
{
    #region Caching defaults

    /// <summary>
    /// Key for number of blog comments
    /// </summary>
    /// <remarks>
    /// {0} : blog post ID
    /// {1} : store ID
    /// {2} : are only approved comments?
    /// </remarks>
    public static CacheKey BlogCommentsNumberCacheKey => new("Nop.blogcomment.number.{0}-{1}-{2}");

    /// <summary>
    /// Gets a key pattern to clear cache
    /// </summary>
    /// <remarks>
    /// {0} : blog post ID
    /// </remarks>
    public static string BlogCommentsNumberPrefix => "Nop.blogcomment.number.{0}";

    /// <summary>
    /// Key for blog tag list model
    /// </summary>
    /// <remarks>
    /// {0} : language ID
    /// {1} : current store ID
    /// {2} : show hidden?
    /// </remarks>
    public static CacheKey BlogTagsCacheKey => new("Nop.blogpost.tags.{0}-{1}-{2}");

    /// <summary>
    /// Gets a key pattern to clear cache
    /// </summary>
    public static string BlogTagsPrefix => "Nop.blogpost.tags.";

    #endregion
}