From 66737b46e636020ded10265a049576fe264d37a9 Mon Sep 17 00:00:00 2001 From: haoxr <1490493387@qq.com> Date: Sat, 24 Dec 2022 13:21:15 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=BC=93=E5=AD=98key=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../oms/common/constant/OmsConstants.java | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 mall-oms/oms-boot/src/main/java/com/youlai/mall/oms/common/constant/OmsConstants.java diff --git a/mall-oms/oms-boot/src/main/java/com/youlai/mall/oms/common/constant/OmsConstants.java b/mall-oms/oms-boot/src/main/java/com/youlai/mall/oms/common/constant/OmsConstants.java new file mode 100644 index 000000000..383bdbba8 --- /dev/null +++ b/mall-oms/oms-boot/src/main/java/com/youlai/mall/oms/common/constant/OmsConstants.java @@ -0,0 +1,28 @@ +package com.youlai.mall.oms.common.constant; + +/** + * 订单常量 + * + * @author haoxr + * @date 2021/03/16 + */ +public interface OmsConstants { + + /** + * 会员购物车缓存KEY前缀 + */ + String MEMBER_CART_PREFIX = "MEMBER:CART:"; + + /** + * 订单防重提交锁KEY前缀 + */ + String ORDER_RESUBMIT_LOCK_PREFIX = "ORDER:RESUBMIT_LOCK:"; + + + /** + * 订单锁前缀 + * + */ + String ORDER_LOCK_PREFIX = "ORDER:LOCK:"; + +}