using Nop.Core.Caching; namespace Nop.Services.Blogs; /// /// Represents default values related to blogs services /// public static partial class NopBlogsDefaults { #region Caching defaults /// /// Key for number of blog comments /// /// /// {0} : blog post ID /// {1} : store ID /// {2} : are only approved comments? /// public static CacheKey BlogCommentsNumberCacheKey => new("Nop.blogcomment.number.{0}-{1}-{2}", BlogCommentsNumberPrefix); /// /// Gets a key pattern to clear cache /// /// /// {0} : blog post ID /// public static string BlogCommentsNumberPrefix => "Nop.blogcomment.number.{0}"; /// /// Key for blog tag list model /// /// /// {0} : language ID /// {1} : current store ID /// {2} : show hidden? /// public static CacheKey BlogTagsCacheKey => new("Nop.blogpost.tags.{0}-{1}-{2}", BlogTagsPrefix); /// /// Gets a key pattern to clear cache /// public static string BlogTagsPrefix => "Nop.blogpost.tags."; #endregion }