fix: 处理问题
This commit is contained in:
parent
56f821d534
commit
3a48ec2916
@ -43,6 +43,9 @@ public class RedisFilesShowCodeService implements IFilesShowCodeService {
|
||||
long clearTimeoutShowCodeCount = 0;
|
||||
for (String key : keySet) {
|
||||
FilesShowCode showCode = (FilesShowCode) redisTemplate.opsForValue().get(key);
|
||||
if (showCode == null) {
|
||||
continue;
|
||||
}
|
||||
if (currentTimeMillis - showCode.getLatestUpdateTime() > SHOW_CODE_TIMEOUT_MILLIS) {
|
||||
clearKeys.add(FILE_SHOW_CODE_KEY + showCode.getFileId());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user