using Nop.Core.Caching; using Nop.Core.Domain.Directory; namespace Nop.Services.Directory; /// /// Represents default values related to directory services /// public static partial class NopDirectoryDefaults { #region Caching defaults #region Countries /// /// Gets a key for caching /// /// /// {0} : Two letter ISO code /// public static CacheKey CountriesByTwoLetterCodeCacheKey => new("Nop.country.bytwoletter.{0}", NopEntityCacheDefaults.Prefix); /// /// Gets a key for caching /// /// /// {0} : Two letter ISO code /// public static CacheKey CountriesByThreeLetterCodeCacheKey => new("Nop.country.bythreeletter.{0}", NopEntityCacheDefaults.Prefix); /// /// Gets a key for caching /// /// /// {0} : language ID /// {1} : show hidden records? /// {2} : current store ID /// public static CacheKey CountriesAllCacheKey => new("Nop.country.all.{0}-{1}-{2}", NopEntityCacheDefaults.Prefix); #endregion #region Currencies /// /// Gets a key for caching /// /// /// {0} : show hidden records? /// public static CacheKey CurrenciesAllCacheKey => new("Nop.currency.all.{0}", NopEntityCacheDefaults.AllPrefix); #endregion #region States and provinces /// /// Gets a key for caching /// /// /// {0} : country ID /// {1} : language ID /// {2} : show hidden records? /// public static CacheKey StateProvincesByCountryCacheKey => new("Nop.stateprovince.bycountry.{0}-{1}-{2}", NopEntityCacheDefaults.Prefix); /// /// Gets a key for caching /// /// /// {0} : show hidden records? /// public static CacheKey StateProvincesAllCacheKey => new("Nop.stateprovince.all.{0}", NopEntityCacheDefaults.Prefix); /// /// Gets a key for caching /// /// /// {0} : abbreviation /// {1} : country ID /// public static CacheKey StateProvincesByAbbreviationCacheKey => new("Nop.stateprovince.byabbreviation.{0}-{1}", NopEntityCacheDefaults.Prefix); #endregion #endregion }