|
@@ -1,6 +1,7 @@
|
|
|
package cn.com.qmth.examcloud.core.questions.starter;
|
|
|
|
|
|
import cn.com.qmth.examcloud.core.questions.service.cache.BasePaperCache;
|
|
|
+import cn.com.qmth.examcloud.core.questions.service.cache.Constants;
|
|
|
import cn.com.qmth.examcloud.core.questions.service.cache.QuestionCache;
|
|
|
import cn.com.qmth.examcloud.support.cache.CacheHelper;
|
|
|
import cn.com.qmth.examcloud.support.cache.bean.BasePaperCacheBean;
|
|
@@ -47,9 +48,10 @@ public class DemoController {
|
|
|
|
|
|
QuestionCacheBean questionCacheBean = CacheHelper.getQuestion(examId, courseCode, groupCode, questionId);
|
|
|
log.info("questionId: " + questionCacheBean.getDefaultQuestion().getId());
|
|
|
- //questionCache.remove(questionId);
|
|
|
+ //questionCache.remove(examId, courseCode, groupCode, questionId);
|
|
|
|
|
|
- final String patternKey = "Q_QUESTION:*" + questionId;
|
|
|
+ final String patternKey = Constants.CACHE_KEY_PAPER + paperId;
|
|
|
+ //final String patternKey = Constants.CACHE_KEY_QUESTION + questionId;
|
|
|
Set<String> keys = redisTemplate.keys(patternKey);
|
|
|
log.info(StringUtils.join(keys, ","));
|
|
|
|