Webiant Logo Webiant Logo
  1. No results found.

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

NopOrderDefaults.cs

using Nop.Core.Caching;
using Nop.Core.Domain.Orders;

namespace Nop.Services.Orders;

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

    #region Checkout attributes

    /// 
    /// Gets a key for caching
    /// 
    /// 
    /// {0} : store ID
    /// {1} : A value indicating whether we should exclude shippable attributes
    /// 
    public static CacheKey CheckoutAttributesAllCacheKey => new("Nop.checkoutattribute.all.{0}-{1}", NopEntityCacheDefaults.AllPrefix);

    #endregion

    #region ShoppingCart

    /// 
    /// Gets a key for caching
    /// 
    /// 
    /// {0} : customer ID
    /// {1} : shopping cart type
    /// {2} : store ID
    /// {3} : product ID
    /// {4} : created from date
    /// {5} : created to date
    /// 
    public static CacheKey ShoppingCartItemsAllCacheKey => new("Nop.shoppingcartitem.all.{0}-{1}-{2}-{3}-{4}-{5}", ShoppingCartItemsByCustomerPrefix, NopEntityCacheDefaults.AllPrefix);

    /// 
    /// Gets a key pattern to clear cache
    /// 
    /// 
    /// {0} : customer identifier
    /// 
    public static string ShoppingCartItemsByCustomerPrefix => "Nop.shoppingcartitem.all.{0}";


    #endregion

    #endregion
}