|
@@ -1,5 +1,6 @@
|
|
package cn.com.qmth.examcloud.core.oe.admin.service.impl;
|
|
package cn.com.qmth.examcloud.core.oe.admin.service.impl;
|
|
|
|
|
|
|
|
+import cn.com.qmth.examcloud.core.oe.admin.base.Constants;
|
|
import cn.com.qmth.examcloud.core.oe.admin.service.ExamRecordDataCacheService;
|
|
import cn.com.qmth.examcloud.core.oe.admin.service.ExamRecordDataCacheService;
|
|
import cn.com.qmth.examcloud.support.examing.ExamRecordData;
|
|
import cn.com.qmth.examcloud.support.examing.ExamRecordData;
|
|
import cn.com.qmth.examcloud.support.redis.RedisKeyHelper;
|
|
import cn.com.qmth.examcloud.support.redis.RedisKeyHelper;
|
|
@@ -23,7 +24,7 @@ public class ExamRecordDataCacheServiceImpl implements ExamRecordDataCacheServic
|
|
@Override
|
|
@Override
|
|
public void saveExamRecordDataCache(Long examRecordDataId, ExamRecordData data) {
|
|
public void saveExamRecordDataCache(Long examRecordDataId, ExamRecordData data) {
|
|
String key = RedisKeyHelper.getBuilder().examRecordDataKey(examRecordDataId);
|
|
String key = RedisKeyHelper.getBuilder().examRecordDataKey(examRecordDataId);
|
|
- redisClient.set(key, data, -1);
|
|
|
|
|
|
+ redisClient.set(key, data, Constants.TIME_OUT_7_DAY);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|