Commit bdc1180e authored by 高飞's avatar 高飞

根据videoid 查询对应的flv优化时间有效性

parent fa1f3566
...@@ -217,7 +217,7 @@ public class TraffController { ...@@ -217,7 +217,7 @@ public class TraffController {
} }
} }
} }
return null; return "";
} }
......
...@@ -51,7 +51,7 @@ public class MyApplicationStartingEventListener implements ApplicationListener<S ...@@ -51,7 +51,7 @@ public class MyApplicationStartingEventListener implements ApplicationListener<S
ThreadPoolUtil.getSchedulePool().scheduleWithFixedDelay(() -> { ThreadPoolUtil.getSchedulePool().scheduleWithFixedDelay(() -> {
FLVCacheService flvservice = applicationContext.getBean(FLVCacheService.class); FLVCacheService flvservice = applicationContext.getBean(FLVCacheService.class);
flvservice.getvalue(); flvservice.getvalue();
}, 3, 300, TimeUnit.SECONDS); }, 3, 1800, TimeUnit.SECONDS);
} }
......
...@@ -34,7 +34,7 @@ public class FLVCacheService { ...@@ -34,7 +34,7 @@ public class FLVCacheService {
if (request.getBody() != null) { if (request.getBody() != null) {
log.info("flv response success" ); log.info("flv response success" );
stringRedisTemplate.opsForValue().set(resisvalue,request.getBody(), 2, TimeUnit.MINUTES); stringRedisTemplate.opsForValue().set(resisvalue,request.getBody(), 32, TimeUnit.MINUTES);
} else { } else {
log.error("flv response " + "empty..."); log.error("flv response " + "empty...");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment