fix:拓展可自定义时间缓存接口,app指数接口增加缓存1分钟

This commit is contained in:
xiaoliuhu
2024-04-20 19:20:05 +08:00
parent ece782497f
commit a7e6cc0b05
2 changed files with 45 additions and 1 deletions

View File

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