Browse Source

缓存时间改为2小时

deason 5 years ago
parent
commit
bccf28e4fb

+ 1 - 1
examcloud-core-questions-service/src/main/java/cn/com/qmth/examcloud/core/questions/service/cache/BasePaperCache.java

@@ -36,7 +36,7 @@ public class BasePaperCache extends RandomObjectRedisCache<BasePaperCacheBean> {
 
     @Override
     protected int getTimeout() {
-        return 10 * 60;// N分钟
+        return 2 * 60 * 60;// N小时
     }
 
 }

+ 1 - 1
examcloud-core-questions-service/src/main/java/cn/com/qmth/examcloud/core/questions/service/cache/Constants.java

@@ -8,6 +8,6 @@ public interface Constants {
 
     String CACHE_KEY_QUESTION = "Q_QUESTION:";
 
-    int DEFAULT_TIME_OUT = 10 * 60;// N分钟
+    int DEFAULT_TIME_OUT = 1 * 60 * 60;// N小时
 
 }

+ 1 - 1
examcloud-core-questions-service/src/main/java/cn/com/qmth/examcloud/core/questions/service/cache/ExtractConfigCache.java

@@ -36,7 +36,7 @@ public class ExtractConfigCache extends RandomObjectRedisCache<ExtractConfigCach
 
     @Override
     protected int getTimeout() {
-        return 10 * 60;// N分钟
+        return 2 * 60 * 60;// N小时
     }
 
 }

+ 1 - 1
examcloud-core-questions-service/src/main/java/cn/com/qmth/examcloud/core/questions/service/cache/ExtractConfigPaperCache.java

@@ -46,7 +46,7 @@ public class ExtractConfigPaperCache extends RandomObjectRedisCache<ExtractConfi
 
     @Override
     protected int getTimeout() {
-        return 10 * 60;// N分钟
+        return 2 * 60 * 60;// N小时
     }
 
 }

+ 1 - 1
examcloud-core-questions-service/src/main/java/cn/com/qmth/examcloud/core/questions/service/cache/QuestionCache.java

@@ -51,7 +51,7 @@ public class QuestionCache extends RandomObjectRedisCache<QuestionCacheBean> {
 
     @Override
     protected int getTimeout() {
-        return 10 * 60;// N分钟
+        return 2 * 60 * 60;// N小时
     }
 
 }