Browse Source

rename cache keys.

deason 2 years ago
parent
commit
d1418604aa

+ 2 - 2
examcloud-core-oe-admin-api-provider/src/main/java/cn/com/qmth/examcloud/core/oe/admin/api/provider/SyncCloudServiceProvider.java

@@ -10,7 +10,7 @@ import cn.com.qmth.examcloud.core.oe.admin.service.cache.ExamStudentCache;
 import cn.com.qmth.examcloud.global.api.HandleSyncCloudService;
 import cn.com.qmth.examcloud.global.api.request.*;
 import cn.com.qmth.examcloud.global.api.response.*;
-import cn.com.qmth.examcloud.support.Constants;
+import cn.com.qmth.examcloud.support.CacheConstants;
 import cn.com.qmth.examcloud.web.helpers.SequenceLockHelper;
 import cn.com.qmth.examcloud.web.support.ControllerSupport;
 import com.google.common.collect.Lists;
@@ -56,7 +56,7 @@ public class SyncCloudServiceProvider extends ControllerSupport implements Handl
     @PostMapping("/syncExamStudent")
     public SyncExamStudentResp syncExamStudent(@RequestBody SyncExamStudentReq req) {
         //此锁是为了保证同步考生和交卷后更新考生信息不冲突
-        String sequenceLockKey = Constants.EXAM_CONTROL_LOCK_PREFIX + req.getStudentId();
+        String sequenceLockKey = CacheConstants.LOCK_EXAM_CONTROL + req.getStudentId();
 
         try {
             //添加考试控制全局锁

+ 0 - 38
examcloud-core-oe-admin-base/src/main/java/cn/com/qmth/examcloud/core/oe/admin/base/Constants.java

@@ -23,44 +23,6 @@ public interface Constants {
      */
     String OE_CODE_403 = "OE-000403";
 
-    /**
-     * 开始考试锁
-     */
-    String START_EXAM_LOCK_PREFIX = "oe_student:start_exam_lock_studentid_";
-
-    /**
-     * 结束考试锁前缀
-     */
-    String END_EXAM_LOCK_PREFIX = "oe_student:end_exam_lock_studentid_";
-
-    /**
-     * 考试交卷锁前缀
-     */
-    String HAND_IN_EXAM_LOCK_PREFIX = "oe_student:hand_in_exam_lock_";
-
-    /**
-     * 处理照片锁前缀
-     */
-    String EXAM_CAPTURE_PHOTO_LOCK_PREFIX = "oe_student:exam_capture_lock_";
-
-    /**
-     * 获取人脸活体检测基本信息前缀
-     */
-    String GET_FACE_BIOPSY_INFO_PREFIX = "oe_student:get_face_biopsy_info_lock_";
-
-    //
-    String ERROR_MSG = "error_message";
-
-
-    /**
-     * 学生考试session前缀
-     */
-    String OE_STUDENT_EXAM_SESSION_PREFIX = "oe_student:exam_session_";
-
-
-    String EXAM_CAPTURE_QUEUE_LOCK_PREFIX = "oe_student:exam_capture_queue_lock_";
-
-
     /**
      * 原始数据库表
      */