using System;
namespace JiaZhiQuan.Common
{
public static partial class CacheKeys
{
///
/// 商品推荐列表
///
///
public static string GoodsRecommendList(DateTime dateTime)
{
return GenerateKey($"mall:goods_recommend:{dateTime.ToString("yyyy-MM-dd")}");
}
///
/// 用户推荐下标
///
///
///
public static string GoodsRecommendCacheCursor(string clientKey)
{
return GenerateKey($"mall:goods_rcml_cursor:{clientKey}");
}
///
/// 缓存24小时
///
public const int OrderMindSellerDeliveryCacheSecs = 60 * 60 * 24;
///
/// 提醒卖家发货行为记录
///
/// 买家的订单
/// 当前日期
public static string OrderMindSellerDelivery(long orderId, DateTime date)
{
return GenerateKey($"mall:order_delivery_remind:{date:MMdd}:{orderId}");
}
///
/// 缓存24小时
///
public const int OrderMindBuyerReceiptCacheSecs = 60 * 60 * 24;
///
/// 提醒买家收货行为记录
///
///
/// 当前日期
public static string OrderMindBuyerReceipt(long orderId, DateTime date)
{
return GenerateKey($"mall:order_receipt_remind:{date:MMdd}:{orderId}");
}
///
/// 货号自增序号缓存
///
/// 当前日期
public static string GoodsNoSequence(DateTime date) {
return GenerateKey($"ue:goods_no_sequence:{date:yyyyMMdd}");
}
}
}