using Nop.Core.Caching; namespace Nop.Services.News; /// /// Represents default values related to orders services /// public static partial class NopNewsDefaults { #region Caching defaults /// /// Key for number of news comments /// /// /// {0} : news item ID /// {1} : store ID /// {2} : are only approved comments? /// public static CacheKey NewsCommentsNumberCacheKey => new("Nop.newsitem.comments.number.{0}-{1}-{2}", NewsCommentsNumberPrefix); /// /// Gets a key pattern to clear cache /// /// /// {0} : news item ID /// public static string NewsCommentsNumberPrefix => "Nop.newsitem.comments.number.{0}"; #endregion }