deason 2 жил өмнө
parent
commit
5a4f64d4fe

+ 5 - 0
examcloud-support/src/main/java/cn/com/qmth/examcloud/support/CacheConstants.java

@@ -87,6 +87,11 @@ public interface CacheConstants {
      */
     String CACHE_E_EXAM = "$E:EXAM:";
 
+    /**
+     * 缓存 - 考试属性信息:{examId}_{key}
+     */
+    String CACHE_E_EXAM_PROP = "$E:EXAM_PROP:";
+
     /**
      * 缓存 - 考试场次信息:{examId}_{examStageId}
      */

+ 1 - 1
examcloud-support/src/main/java/cn/com/qmth/examcloud/support/cache/CacheHelper.java

@@ -244,7 +244,7 @@ public class CacheHelper implements CacheConstants {
      * @author WANGWEI
      */
     public static ExamPropertyCacheBean getExamProperty(Long examId, String key) {
-        return ObjectRedisCacheProcessor.get("E_EXAM_PROP:", new Object[]{examId, key},
+        return ObjectRedisCacheProcessor.get(CACHE_E_EXAM_PROP, new Object[]{examId, key},
                 ExamPropertyCacheBean.class, "EC-CORE-EXAMWORK",
                 "cn.com.qmth.examcloud.core.examwork.service.cache.ExamPropertyCache");
     }