大盘缓存数据改为6秒

This commit is contained in:
gavin
2024-07-26 15:04:56 +08:00
parent 2e4449bd64
commit 5b2eb8519a

View File

@@ -247,7 +247,7 @@ public class StockApiController {
@ResponseBody @ResponseBody
public ServerResponse getIndiaIndexByToday() { public ServerResponse getIndiaIndexByToday() {
String INDEX_CODE = "TODAY_INDEX"; String INDEX_CODE = "TODAY_INDEX";
return RequestCacheUtils.cache("getIndiaIndexByToday.do", INDEX_CODE,60000, (string) -> { return RequestCacheUtils.cache("getIndiaIndexByToday.do", INDEX_CODE,6000, (string) -> {
return this.stockService.getIndexByBtoday(); return this.stockService.getIndexByBtoday();
}); });
} }