|
@@ -24,6 +24,7 @@ import cn.com.qmth.examcloud.support.cache.bean.SmsAssemblyCacheBean;
|
|
import cn.com.qmth.examcloud.support.cache.bean.StudentCacheBean;
|
|
import cn.com.qmth.examcloud.support.cache.bean.StudentCacheBean;
|
|
import cn.com.qmth.examcloud.support.cache.bean.SysPropertyCacheBean;
|
|
import cn.com.qmth.examcloud.support.cache.bean.SysPropertyCacheBean;
|
|
import cn.com.qmth.examcloud.support.cache.bean.ThirdPartyAccessCacheBean;
|
|
import cn.com.qmth.examcloud.support.cache.bean.ThirdPartyAccessCacheBean;
|
|
|
|
+import cn.com.qmth.examcloud.web.cache.HashRedisCacheProcessor;
|
|
import cn.com.qmth.examcloud.web.cache.ObjectRedisCacheProcessor;
|
|
import cn.com.qmth.examcloud.web.cache.ObjectRedisCacheProcessor;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -136,9 +137,9 @@ public class CacheHelper {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
public static ExtractConfigPaperCacheBean getExtractConfigPaper(Long examId, String courseCode,
|
|
public static ExtractConfigPaperCacheBean getExtractConfigPaper(Long examId, String courseCode,
|
|
- String groupCode, String paperId) {
|
|
|
|
- return ObjectRedisCacheProcessor.get("Q_PAPER:EXTRACT_CONFIG_PAPER_",
|
|
|
|
- new Object[]{examId, courseCode, groupCode, paperId},
|
|
|
|
|
|
+ String groupCode, String paperId) {
|
|
|
|
+ return HashRedisCacheProcessor.get("Q_PAPER:EXTRACT_CONFIG_PAPER_",
|
|
|
|
+ new Object[]{paperId},new Object[]{examId, courseCode, groupCode},
|
|
ExtractConfigPaperCacheBean.class, "EC-CORE-QUESTION",
|
|
ExtractConfigPaperCacheBean.class, "EC-CORE-QUESTION",
|
|
"cn.com.qmth.examcloud.core.questions.service.cache.ExtractConfigPaperCache");
|
|
"cn.com.qmth.examcloud.core.questions.service.cache.ExtractConfigPaperCache");
|
|
}
|
|
}
|
|
@@ -165,9 +166,9 @@ public class CacheHelper {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
public static QuestionCacheBean getQuestion(Long examId, String courseCode, String groupCode,
|
|
public static QuestionCacheBean getQuestion(Long examId, String courseCode, String groupCode,
|
|
- String questionId) {
|
|
|
|
- return ObjectRedisCacheProcessor.get("Q_QUESTION:",
|
|
|
|
- new Object[]{examId, courseCode, groupCode, questionId}, QuestionCacheBean.class,
|
|
|
|
|
|
+ String questionId) {
|
|
|
|
+ return HashRedisCacheProcessor.get("Q_QUESTION:",
|
|
|
|
+ new Object[]{questionId},new Object[]{examId, courseCode, groupCode}, QuestionCacheBean.class,
|
|
"EC-CORE-QUESTION",
|
|
"EC-CORE-QUESTION",
|
|
"cn.com.qmth.examcloud.core.questions.service.cache.QuestionCache");
|
|
"cn.com.qmth.examcloud.core.questions.service.cache.QuestionCache");
|
|
}
|
|
}
|
|
@@ -236,7 +237,7 @@ public class CacheHelper {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
public static ExamStudentPropertyCacheBean getExamStudentProperty(Long examId, Long studentId,
|
|
public static ExamStudentPropertyCacheBean getExamStudentProperty(Long examId, Long studentId,
|
|
- String key) {
|
|
|
|
|
|
+ String key) {
|
|
return ObjectRedisCacheProcessor.get("E_EXAM_STUDENT_PROP:",
|
|
return ObjectRedisCacheProcessor.get("E_EXAM_STUDENT_PROP:",
|
|
new Object[]{examId, studentId, key}, ExamStudentPropertyCacheBean.class,
|
|
new Object[]{examId, studentId, key}, ExamStudentPropertyCacheBean.class,
|
|
"EC-CORE-EXAMWORK",
|
|
"EC-CORE-EXAMWORK",
|