#329 ttl

Fusionado
wangfan fusionadas 1 achegas de wangfan/redis en wangfan/master hai 1 semana

+ 3 - 3
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/adweb/dmp/controller/TradeSparqController.java

@@ -87,7 +87,7 @@ public class TradeSparqController {
                         "TradeSparq API返回Redis缓存数据,uid = {}, path = {}, request body = {}",
                         uid,
                         apiPath,
-                        requestBody);
+                        requestBody);:
                 return Result.ok(cachedResult);
             }
 
@@ -128,8 +128,8 @@ public class TradeSparqController {
                     resourceQuotaService.consumeCustomsDataQuota(uid);
                 }
 
-                // 3.2 缓存到Redis,TTL为60分钟
-                adwebRedisUtil.set(redisKey, responseEntity.getBody(), 60 * 60);
+                // 3.2 缓存到Redis,TTL为3小时
+                adwebRedisUtil.set(redisKey, responseEntity.getBody(), 60 * 60 * 3);
 
                 return Result.ok(responseEntity.getBody());
             } catch (RestClientResponseException e) {