yumeng 1 tuần trước cách đây
mục cha
commit
506b69fd9b

+ 1 - 1
src/main/java/com/adx/tencent/config/AppProperties.java

@@ -108,7 +108,7 @@ public class AppProperties {
     private int redisDb = 0;
     private String redisStream = "adx:tencent:events";
     private long redisStreamMaxLen = 50000;
-    private Duration bidTtl = Duration.ofDays(3);
+    private Duration bidTtl = Duration.ofHours(36);
     private Duration redisConnectTimeout = Duration.ofSeconds(5);
     private Duration redisCommandTimeout = Duration.ofSeconds(5);
     private Duration redisShutdownTimeout = Duration.ofMillis(100);

+ 1 - 1
src/main/java/com/adx/tencent/httpapi/AdminController.java

@@ -122,7 +122,7 @@ public class AdminController {
         }
         long ttlSeconds = toLong(body == null ? null : body.get("ttlSeconds"));
         if (ttlSeconds <= 0) {
-            ttlSeconds = Duration.ofDays(3).getSeconds();
+            ttlSeconds = Duration.ofHours(36).getSeconds();
         }
         long scanCount = toLong(body == null ? null : body.get("scanCount"));
         if (scanCount <= 0) {

+ 1 - 1
src/main/resources/application-prod.yml

@@ -49,7 +49,7 @@ adx:
   redis-username: "hcst"
   redis-password: "hcst@2026qwe.."
   redis-db: 5
-  bid-ttl: 3d
+  bid-ttl: 36h
   redis-connect-timeout: 5s
   redis-command-timeout: 5s
   redis-shutdown-timeout: 100ms