package com.cpop.mall.framework.constant;

/**
 * 商城redis实体类
 */
public interface MallRedisConstant {

    /**
     * 库存记录redis
     */
    String STOCK_RECORD_NUM = "mall:stock:recordNum:";

    /**
     * 用户创建预订单(用户id)
     */
    String IDEMPOTENT_LOCK_CREATE_ADVANCE_ORDER = "mall:idempotentLock:createAdvanceOrder:";

    /**
     * 用户下单幂等锁(用户id)
     */
    String IDEMPOTENT_LOCK_USER_PAY = "mall:idempotentLock:userPay:";
}
