|
@@ -27,6 +27,7 @@ import java.util.Set;
|
|
|
@Slf4j
|
|
|
@EnableScheduling
|
|
|
public class SceneApplication {
|
|
|
+ private static String keyFormat = "touch:scene:download:num:%s";
|
|
|
|
|
|
public static void main(String[] args) throws IOException {
|
|
|
SpringApplication.run(SceneApplication.class, args);
|
|
@@ -42,7 +43,11 @@ public class SceneApplication {
|
|
|
}
|
|
|
RedisUtil redisUtil = SpringUtil.getBean(RedisUtil.class);
|
|
|
redisUtil.del(RedisKey.SCENE_DOWNLOAD_ING);
|
|
|
+ Set keyFormatSet = redisUtil.keys(String.format(keyFormat, "*"));
|
|
|
Set PREFIX_DOWNLOAD_PROGRESS_V4_SET = redisUtil.keys(String.format(RedisKey.PREFIX_DOWNLOAD_PROGRESS_V4, "*"));
|
|
|
+ for (Object o : keyFormatSet) {
|
|
|
+ redisUtil.del(o.toString());
|
|
|
+ }
|
|
|
for (Object o : PREFIX_DOWNLOAD_PROGRESS_V4_SET) {
|
|
|
redisUtil.del(o.toString());
|
|
|
}
|